Emergency CheatsheetCODE: 018-JQ-JSON-CLI⏱️ ~8 min read
jq Command-Line JSON Processor: Parsing, Filtering & Reshaping for DevOps
Master jq query syntax: nested extraction, filtering arrays, string interpolation, and transforming AWS/Kubernetes JSON outputs.
Authored by: Vibe DevOps · Published: 10/23/2026
Extract, shape, and filter JSON payloads across Kubernetes manifests, cloud APIs, and container logs directly in the terminal.
1. Basic Extraction
curl -s https://api.example.com/health | jq '.'
cat log.json | jq -r '.level, .message'
2. Filtering Arrays
kubectl get pods -o json | jq -r '.items[] | select(.status.phase != "Running") | .metadata.name'
💡 Team Storage & Usage Tips
Store the vector PDF in your internal team repository (Notion, Confluence) or print it out in A4 format next to your workstation for rapid troubleshooting during midnight production outages.