OpenReplay Logo
12k
12k

JSONPath tester

Test JSONPath expressions against your JSON and see the matched results update live — with a built-in cheatsheet. Everything runs in your browser.

Processed locally

Cheatsheet

$ the root element[*] all elements (wildcard).. recursive descent[0:2] array slice[?(@.x)] filter expression

About this tool

JSONPath is a query language for JSON, the JSON equivalent of XPath for XML. An expression like $.store.book[*].author selects every author in an array of books. It is used in API testing, configuration, log processing and data-extraction pipelines.

Paste your JSON, type an expression, and the matching values appear immediately as a JSON array. Invalid JSON or a malformed expression is flagged with a clear message. Use the cheatsheet for the common operators — wildcards, recursive descent, array slices and filters — and copy the matched results with one click.

Your JSON is queried locally — nothing is uploaded.

Frequently asked questions

What JSONPath syntax is supported?

The widely-used jsonpath-plus dialect: $ root, . and [] child access, * wildcard, .. recursive descent, [start:end:step] slices, and [?(@.price < 10)] filter expressions.

Why do I get an empty result?

An empty array means the expression is valid but matched nothing — check the paths and array indices against your JSON. A syntax error in the expression is reported separately.

How is this different from a JSON formatter?

A formatter pretty-prints or validates the whole document; JSONPath extracts just the parts you query. Use the JSON formatter to read the structure, then JSONPath to pull values out of it.