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:
All you have to do is to add a second argument to the json_encode method like this.
json_encode
echo json_encode($response_date, JSON_PRETTY_PRINT);
or
print json_encode($response_date, JSON_PRETTY_PRINT);
You can visit this link to read more on how to use json_encode.
Hope it helps.