Skip to content

Instantly share code, notes, and snippets.

@hannestyden
Created April 18, 2012 14:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannestyden/2413827 to your computer and use it in GitHub Desktop.
Save hannestyden/2413827 to your computer and use it in GitHub Desktop.
New version of the old classic
ppjson () {
ruby -e "require 'json'; puts JSON.pretty_generate(JSON.parse(STDIN.read))"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment