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
If you are on firefox install JSONovich. Not really a PHP solution I know, but it does the trick for development purposes/debugging.