Skip to content

Instantly share code, notes, and snippets.

@thomascate
Created January 7, 2015 17:03
Show Gist options
  • Select an option

  • Save thomascate/4c19548c91ead57b5d47 to your computer and use it in GitHub Desktop.

Select an option

Save thomascate/4c19548c91ead57b5d47 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 simplejson as 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