Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Last active December 23, 2015 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/6577766 to your computer and use it in GitHub Desktop.
Save franciscoj/6577766 to your computer and use it in GitHub Desktop.
Pretty pring json from the command line
#!/bin/sh
# Put this file on your ~/bin, give it +x and then run it like:
# curl whatever.jon/it-gives.json | pjson
# It will print a pretty printed version of the josn file.
python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment