I\'m building a PHP script that feeds JSON data to another script. My script builds data into a large associative array, and then outputs the data using json_encode
json_encode
Use in combination with json_encode() and the JSON_PRETTY_PRINT option:
json_encode()
JSON_PRETTY_PRINT