Copy · paste · pipe

jq one-liners you can actually paste.

Ready-to-run jq recipes for the JSON tasks you actually do — filter, reshape, sort/group, and output CSV — each with example input and output.

15 recipes

You know what you want. You don't remember the jq for it.

Each recipe is a focused, copy-paste filter for one real task, with sample input and the exact output it produces — so you can confirm it before running it on your data.

FAQ

Are these jq recipes free?

Yes. Every recipe is free to read and copy, with no account or paywall.

Do I need jq installed?

Yes — install with "brew install jq", "sudo apt install jq", or "winget install jqlang.jq". See the install recipe.

How do I pipe a curl response into jq?

Pipe stdin: "curl -s https://api.example.com | jq '.'". jq reads JSON on stdin and applies your filter.

How do I pass a shell variable into jq?

Use --arg (string) or --argjson (JSON): jq --arg name "$USER" 'select(.owner == $name)'. Never interpolate into the filter string.

Open the full interactive site ↗