Create JSON from scratch using null input mode.
Section: Getting Started
Run jq without input
bash
bash
jq -n '{app: "cheatsheet", enabled: true}'Explanation
`-n` starts with no input document, which is ideal for generating JSON.
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 Getting Started