Emit a minified one-line form.
Section: Minify JSON
Compact JSON with jq
bash
bash
jq -c . data.jsonExplanation
Useful for logs, payload fixtures, and embedding JSON in scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Minify JSON