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
If you used only $json_string = json_encode($data, JSON_PRETTY_PRINT);
, you will get in the browser something like this (using the Facebook link from the question :) ):
but if you used a chrome Extension like JSONView (even without the PHP option above), then you get a more pretty readable debuggable solution where you can even Fold/Collapse each single JSON object easily like this: