Dev Tools · 1h ago
Three ways to pretty-print curl JSON: jq, Python, or a browser tool
Developers often need to format minified JSON from curl responses. The most common approach is piping through jq, which offers fast parsing and filtering but requires installation. Python's json.tool module serves as a fallback on systems without jq, while browser-based formatters are best for sharing but require verifying they don't upload data.
Meridian48 take
The piece usefully flags a security pitfall—online formatters that retain snippets—but the core advice (use jq, fall back to Python, verify browser tools) is standard developer knowledge.
Read the full reporting
jq, json.tool, or a browser formatter? How I pretty-print curl JSON →
DEV Community
json-formattingdeveloper-tools