python -m json.tool

Validate and pretty-print JSON data. Part of Python’s standard library. More information: https://docs.python.org/library/json.html#module-json.tool.

python -m json.tool {{path/to/file.json}}

echo '{{{"key": "value"}}}' | python -m json.tool