Skip to content

Instantly share code, notes, and snippets.

@cjdurkin
Created May 21, 2015 14:42
Show Gist options
  • Save cjdurkin/354bdbadacfd2029a1b5 to your computer and use it in GitHub Desktop.
Save cjdurkin/354bdbadacfd2029a1b5 to your computer and use it in GitHub Desktop.
ppjson
#!/usr/bin/python
import json
import fileinput
text = "".join(line for line in fileinput.input())
data = json.loads(text)
print(json.dumps(data, sort_keys=True, indent=4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment