Created
March 4, 2010 05:49
-
-
Save aroscoe/321432 to your computer and use it in GitHub Desktop.
pretty print piped json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import sys, json; data = sys.stdin.read(); print json.dumps(json.loads(data), sort_keys=True, indent=4);" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment