How can I minify JSON in a shell script? September 18, 2023 by Tarik You can use jq -c (compact) option. jq -c . < input.json