Parse a file and fail if JSON is invalid.
Section: Validate JSON files
Validate with jq
bash
bash
jq empty input.jsonExplanation
`jq empty` is concise and script-friendly for validation-only workflows.
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 Validate JSON files