r2957 - branches/ng-jtimer/src/main/java/org/chorem/jtimer/web
Author: echatellier Date: 2014-04-14 21:36:46 +0200 (Mon, 14 Apr 2014) New Revision: 2957 Url: http://forge.chorem.org/projects/jtimer/repository/revisions/2957 Log: Fix json Modified: branches/ng-jtimer/src/main/java/org/chorem/jtimer/web/TaskResource.java Modified: branches/ng-jtimer/src/main/java/org/chorem/jtimer/web/TaskResource.java =================================================================== --- branches/ng-jtimer/src/main/java/org/chorem/jtimer/web/TaskResource.java 2014-04-14 19:13:31 UTC (rev 2956) +++ branches/ng-jtimer/src/main/java/org/chorem/jtimer/web/TaskResource.java 2014-04-14 19:36:46 UTC (rev 2957) @@ -20,6 +20,6 @@ @Get("json") public Representation getTask() { String taskId = (String)getRequest().getAttributes().get("taskId"); - return new StringRepresentation("{args:" + taskId + "}", MediaType.APPLICATION_JSON); + return new StringRepresentation("{\"args\":" + taskId + "}", MediaType.APPLICATION_JSON); } }
participants (1)
-
echatellier@users.chorem.org