FANDOM



Pretty-print Edit

Pretty-print a json file from the command-line (requires Python):

cat file.json | python -mjson.tool

Minify Edit

Minify from the command-line (requires Python):

cat file.json | python -c 'import json,sys;print json.dumps(json.loads(sys.stdin.read()), separators=(",", ":"))'