Consuming JAZZ Team Server REST service with JSON as result
![](http://jazz.net/_images/myphoto/8737bfbfc718c0377c6a6d0fe6e16760.jpg)
I want to use the REST service to query all the work items. For that I send a GET request to the following URL:
https://localhost:9443/ccm/oslc/workitems/catalog
As header fields i set:
Accept, application/x-oslc-cm-change-request+json
But nevertheless the response is in XML format. So how can I get it in JSON?
https://localhost:9443/ccm/oslc/workitems/catalog
As header fields i set:
Accept, application/x-oslc-cm-change-request+json
But nevertheless the response is in XML format. So how can I get it in JSON?
One answer
![](http://jazz.net/_images/myphoto/8737bfbfc718c0377c6a6d0fe6e16760.jpg)
I want to use the REST service to query all the work items. For that I send a GET request to the following URL:
https://localhost:9443/ccm/oslc/workitems/catalog
As header fields i set:
Accept, application/x-oslc-cm-change-request+json
But nevertheless the response is in XML format. So how can I get it in JSON?
Take a look at this link (if you have not done so already):
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Getting_Resource_Representations