Pretty print JSON output.
This commit is contained in:
9
static/prettyprint.py
Executable file
9
static/prettyprint.py
Executable 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
|
||||
Reference in New Issue
Block a user