jq Cheatsheet

Power user.

Overview

jq is the command-line JSON processor that turns API responses and log lines into scriptable data. Five primitive operations cover almost every operator interaction: select, filter, transform, format, aggregate.

The approach

Three habits separate fluent jq from beginner jq: start narrow, expand with pipes, and switch to raw output when scripting.

Why this compounds

jq fluency compounds because modern systems are JSON-first. Every API response, every Kubernetes object, every Datadog query result reads through the same five primitives.