How can I visually format JSON data (programmatically)?

Posted by Ian Robinson on Stack Overflow See other posts from Stack Overflow or by Ian Robinson
Published on 2011-02-03T22:59:19Z Indexed on 2011/02/03 23:26 UTC
Read the original article Hit count: 171

Filed under:
|

I'm working with big blobs of JSON. These blobs change slightly over time and a revision history is kept. I'd really like to be able to do a visual diff on them, but my problem is they're being stored without any formatting at all - everything is on one line, so that makes it a little hard to see what changed.

Is there a good way to programatically format them ala http://jsonformat.com/ or http://jsonformatter.curiousconcept.com/?

© Stack Overflow or respective owner

Related posts about JSON

Related posts about formatting