TIL there are dozens of neat little command-line tools hidden away in the Python standard library, available to run on any machine that has a Python installation https://til.simonwillison.net/python/stdlib-cli-tools
@simon json.tool will also exit with nonzero status if your json document is invalid.
We use it a lot as a quick easy to validate config files