diff --git a/Documents/bin/json-prettify b/Documents/bin/json-prettify new file mode 100755 index 0000000000000000000000000000000000000000..f10eafb8cf5c9c50ddd0d1925c6e20d0467f2d3a --- /dev/null +++ b/Documents/bin/json-prettify @@ -0,0 +1,8 @@ +#!/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))