Using jq to minify JSON

jq, the swiss army knife of JSON tools, can easily be used to minify a JSON file

jq -c . < input.json