I\'m developing an Android app, and for the API I\'m sending my requests to a URL that should return JSON data.
This is what I\'m getting in my output:
Your problem is actually very easy to solve. The Chrome JSON Formatter plugin only formats your output if the Content-Type header is set to application/json.
The only thing you need to change in your code is to use header('Content-Type: application/json');
in your PHP code, before returning the json-encoded data.