Developer reference

jq and JSONPath Cheatsheet

Quick selectors and filters for JSON inspection workflows.

Pretty print

Format JSON in the terminal.

jq . data.json

Select field

Read a top-level field.

jq .name data.json

Map array

Extract IDs from an array.

jq ".items[].id" data.json

JSONPath

Select every item ID.

$.items[*].id

Related tools

Related categories