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
For those running PHP version 5.3 or before, you may try below:
$pretty_json = "".print_r(json_decode($json), true).""; echo $pretty_json;
".print_r(json_decode($json), true)."