Learn

JQ filter examples

Direct answer: Common jq recipes include mapping fields, selecting with predicates, sorting, and building new objects. Start with `.items[] | select(.active) | {id, name}` and expand as needed.

Examples

Select and project

.items[] | select(.qty > 0) | {sku, qty}

Sort descending

.items | sort_by(.qty) | reverse

Keys only

keys

FAQ

Can I run these in the browser?

Yes. BracketView’s JQ playground runs a WebAssembly jq engine client-side.

Try it in BracketView