Formatting JSON in the Terminal: The Essential jq Command Guide
Master the command-line jq utility for beautifying, filtering, querying, and transforming JSON streams on Linux and macOS.
Try Toolstack's JSON Validator
Free, instantaneous, and processes 100% locally in your browser.
`jq` is the standard lightweight command-line JSON processor for bash, zsh, and terminal environments.
Basic Beautification
Pipe any minified curl output into `jq` for instant colorized formatting: ```bash curl -s https://api.example.com/data | jq . ```
Selecting Specific Keys
Extract only the user email from a response: ```bash curl -s https://api.example.com/user | jq '.data.email' ```
Filtering Arrays
Filter all active users: ```bash cat users.json | jq '.[] | select(.active == true)' ```
More Guides in JSON & APIs
Explore More Free Tools on Toolstack
Client-side developer utilities, image converters, calculators, and educational engineering guides.
Bulk CSV Data Cleaner
Clean, deduplicate, filter, reorder columns, and sanitize CSV datasets 100% in browser.
Redirect Checker & GSC Analyzer
Audit HTTP redirect chains (301, 302, 308), loops, and Google Search Console exports.
Bulk URL Status Checker
Batch check HTTP status codes (200, 301, 404, 500), latency, and hops in bulk.
Time Zone Meeting Planner
Find overlapping working hours across 2 to 10 cities and copy meeting invites instantly.
Word Counter
Count words, characters with/without spaces, sentences, and paragraphs in real time with reading speed metrics.
PDF Compressor
Reduce PDF document file size directly in your browser with zero server uploads.