Commit 1ba27a62 authored by nimrod's avatar nimrod
Browse files

Added script to pretty print JSON files/ streams.

parent 882c445e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
#!/usr/bin/env python3
'''Get JSON from stdin, output pretty JSON to stdout.'''

import json
import sys

if __name__ == '__main__':
    print(json.dumps(json.load(sys.stdin), indent=4, sort_keys=True))