Skip to content

Instantly share code, notes, and snippets.

@aroscoe
Created March 4, 2010 05:49
Show Gist options
  • Save aroscoe/321432 to your computer and use it in GitHub Desktop.
Save aroscoe/321432 to your computer and use it in GitHub Desktop.
pretty print piped json
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