JSONPath Tester

Run a JSONPath expression against your JSON and see the matches.

Results appear here…
Advertisement

What this tool does

JSONPath is a query language for JSON, similar to how XPath works for XML. It lets you select values deep inside a JSON document with a short expression. This tester runs your expression live and shows every matching value.

Common syntax

  • $ — the root element.
  • .key or ['key'] — a child property.
  • [*] — all array elements.
  • ..key — recursive search for a property anywhere.
  • [?(@.price < 20)] — filter by a condition.

Example

$.store.books[*].title returns every book title. $..price returns every price anywhere in the document.

Limitations

  • JSONPath has small dialect differences between libraries; this tester uses a widely used implementation.
Advertisement