Is there a (Unix) shell script to format JSON in human-readable form?
Basically, I want it to transform the following:
{ \"foo\": \"lorem\", \"bar\":
The JSON Ruby Gem is bundled with a shell script to prettify JSON:
sudo gem install json echo '{ "foo": "bar" }' | prettify_json.rb
Script download: gist.github.com/3738968