I am Issuing the API call below but it returns data in XML format.
How can I get it to return in JSON format?
Release : 20.x, 21.x, 22.x
The script or tool being used for the REST call needs to pass the header as application/json.
Here is an example using the Postman application:
Under headers add Accept - application/json and it will return with correct JSON formatting.