Format JSON read from stdin with default pretty output.
Section: Getting Started
Pretty-print JSON from stdin
bash
bash
echo '{"name":"alice","age":30}' | jq '.'Explanation
The identity filter `.` returns the input unchanged, but jq formats it nicely.
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 Getting Started