Skip to content

Instantly share code, notes, and snippets.

@ryanlelek
Last active August 29, 2015 14:05
Show Gist options
  • Save ryanlelek/78fc643886628e454a56 to your computer and use it in GitHub Desktop.
Save ryanlelek/78fc643886628e454a56 to your computer and use it in GitHub Desktop.
JSON Print Script
curl -o /usr/local/bin/prettyjson https://gist.githubusercontent.com/ryanlelek/78fc643886628e454a56/raw/12380b8ab13b9c23e1c34c9fe996c01e40b2eccb/prettyjson.py; chmod +x /usr/local/bin/prettyjson;
#!/usr/bin/env python
import sys
import json
print json.dumps(json.loads(sys.stdin.read()), indent=2)
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment