Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created September 19, 2011 21:34
Show Gist options
  • Save terrycojones/1227672 to your computer and use it in GitHub Desktop.
Save terrycojones/1227672 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from json import dumps, loads
import sys
for line in sys.stdin:
print dumps(loads(line[:-1]), indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment