I need to be able to take any JSON data and print key / value pairs.
Then print the JSON data. JSON is a designation, not an object. If you have JSON data, you already have everything you need. If you want this to be a little more bizarre, you can add a line after each "\s*,
If you want to deconstruct an object, this is not possible if you are not using JavaScript, since ECMAScript cannot create circular references in a single object literal. If it's JavaScript-only, you can use uneval(object) , which will use harsh variables. (for example, ({x:#1={y:#1#}}) ).
Eli gray
source share