Skip to content

Instantly share code, notes, and snippets.

@ae6rt
Created December 23, 2013 13:33
Show Gist options
  • Save ae6rt/8097209 to your computer and use it in GitHub Desktop.
Save ae6rt/8097209 to your computer and use it in GitHub Desktop.
JSON pretty printer
cat ~/bin/jsonpp.py
#!/usr/bin/python
import sys, json
print json.dumps(json.load(sys.stdin), sort_keys=True, indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment