Format JSON with indentation and colors in many terminals.
Section: Pretty-printing
Pretty-print with jq
bash
bash
jq . data.jsonExplanation
The most common CLI workflow for readable 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 Pretty-printing