Query JSON with JSONPath

$.store.book[*].title pulls every title — test JSONPath expressions against real JSON and see exactly what matches.

Tools used in this guide

The job

APIs hand you nested JSON; JSONPath is the query language that reaches inside. Testing the expression on the real payload beats guessing at bracket syntax.

Query

Paste the JSON, write the path, run it. Every match shows its own path (like $.store.book[0].title) alongside the value — the addresses are often as useful as the values.

  • ..name descends anywhere — $..author finds every author key regardless of depth.
  • [0:2] slices arrays — first two elements, like Python.

Worked example

On a store blob, $.store.book[*].title returns 4 matches — their paths reveal the array indices you would need for a fixed lookup.

Where it stops

A subset of the spec: no [?()] filters, no multi-index unions, no script expressions. JSON input is capped at 4 MB and output at 500 matches.