Pretty print JSON output.

This commit is contained in:
Ian Gulliver
2016-01-08 12:26:06 -08:00
parent c9821fae3e
commit e4833c405d
2 changed files with 10 additions and 2 deletions

9
static/prettyprint.py Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/python2.7
import json
import sys
json.dump(
json.load(sys.stdin), sys.stdout,
sort_keys=True, indent=4, separators=(',', ': '))
print