Check whether a file parses as valid JSON.
Section: Core syntax rules
Validate JSON with Python
bash
bash
python -m json.tool input.json > /dev/nullExplanation
Useful on machines where Python is available but `jq` is not.
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 Core syntax rules