Pretty-print[]
Pretty-print a json file from the command-line (requires Python):
cat file.json | python -mjson.tool
Minify[]
Minify from the command-line (requires Python):
cat file.json | python -c 'import json,sys;print json.dumps(json.loads(sys.stdin.read()), separators=(",", ":"))'