A command line program for pretty-printing or minimizing json files.
Prettify and overwrite an existing file:
jsonfmt some_file.json
Read json from stdin, prettify it and print to stdout:
cat in_file.json | jsonfmt
Read json from stdin, minimize it and write it to a new file:
cat in_file.json | jsonfmt -m -o out_file.json
-m --minimize
.-o
for writing to a new file.