Skip to content

Instantly share code, notes, and snippets.

@dshafik
Created February 17, 2012 11:14
Show Gist options
  • Save dshafik/1852740 to your computer and use it in GitHub Desktop.
Save dshafik/1852740 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
"""
Convert JSON data to human-readable form.
(Reads from stdin and writes to stdout)
"""
import sys
import json
print json.dumps(json.loads(sys.stdin.read()), indent=4)
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment