I am trying to get the responses in JSON instead of XML. Even when specify application/json in header the response is returned in XML !!!!
What am I missing ?
Does it mean we have to always convert to JSON ?
curl -X GET -H "Accept-Language: en-US" -H "Authorization: Basic a3Jpc3Y6a3Jpc3Y=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: aed114e3-efba-d3a0-1075-a6c109fa3fa1" "http://localhost:8080/jbpm-console/rest/task/2"
Except for the Execute calls, all other REST calls described below can use either JAXB or JSON.
All REST calls, unless otherwise specified, will use JAXB serialization.
When using JSON, make sure to add the JSON media type ("application/json") to the ACCEPT header of your REST call.
Try again setting the header "Accept" with the value "application/json".
Retrieving data ...