Learn

What is JQ?

Direct answer: jq is a lightweight, flexible command-line processor for JSON. Filters like .items[] | select(.active) let you slice, map, and transform JSON streams. BracketView embeds a WebAssembly jq playground so you can run filters without installing the CLI.

Step-by-step

  1. Step 1

    Identity filter

    `.` returns the whole input document.

  2. Step 2

    Iterate arrays

    `.[]` or `.items[]` walks array elements.

  3. Step 3

    Filter and map

    Pipe into `select(...)` and project fields with `{id, name}`.

Examples

Active users

.users[] | select(.active == true) | .email

Map names

[.items[] | .name]

FAQ

Do I need to install jq?

For local scripting, yes. For experimentation, BracketView’s browser playground runs jq via WebAssembly.

Try it in BracketView