AnsweredAssumed Answered

Activiti Rest JSON Response

Question asked by pneudecorb on Jul 25, 2012
Latest reply on Jul 31, 2012 by frederikheremans1
Hi,

I am using the restful aspect of activiti and noticed that it appears to be returning invalid json.  I would expect the resultant json to look similar to,
{
  "data": [
    {
      "id": "10",
      "name": "activiti-examples.bar",
      "deploymentTime": "2010-10-13T14:54:26.750+02:00"
    }
  ],
  "total": 1,
  "start": 0,
  "sort": "id",
  "order": "asc",
  "size": 1
}

but it comes back with none of the quotes and in place of the ':' name/value separator, it has an '=', so the response I get back looks like,

{
  data = [
    {
      id =10,
     …
    }
  ],
  total = 1,
  …
  size = 1
}

which is not parseable Json.

I'm not sure why Activiti would return JSon in this latter format and hoped someone on the forum might have seen this before?

I am using Activiti 5.9.

Thanks,
Pneu

Outcomes