JSONPath Tester

Evaluate JSONPath expressions on your JSON directly in the browser — no upload, no tracking. Supports filters, recursive queries, and instant copy/download.

Tip: Use .. for recursive search and filters like [?(@.price < 10)].
Loading...

When should you use JSONPath?

Quick examples to help you start fast.

Extract values
Pick specific fields from large API responses.
Example: $.data.items[*].id
Debug filters
Test conditions like price, status, flags.
Example: $.store.book[?(@.price < 10)]
Recursive search
Find a key anywhere in deeply nested JSON.
Example: $..price
Get arrays for other tools
Copy output into CSV converters or formatters.
Example: $.users[*].email

JSONPath Usage

Quick reference for common operators.

$
the root object/element
@
the current object/element
. or []
child operator
..
recursive descent. JSONPath borrows this syntax from E4X.
*
wildcard. All objects/elements regardless their names.
[]
subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator.
?()
applies a filter (script) expression.
()
script expression, using the underlying script engine.
Tip: Filters look like [?(@.price < 10)] and recursive search looks like $..price.

Explore More Developer Tools

Format, Validate, and Generate Data Instantly

TrueFormatter provides essential utilities for modern web development, including JSON formatting, YAML conversion, and more.

JSONPath Tester FAQ

JSONPath is a query language for JSON, similar to XPath for XML. It allows you to extract specific values from deeply nested JSON structures using expressions like $.store.book[*].author.

No. All processing happens locally in your browser. Your JSON is never uploaded, stored, or sent to any server.

This tool supports common JSONPath features such as root ($), dot and bracket notation, wildcards (*), array indexes, filters like [?(@.price < 10)], and recursive descent using (..).

An empty array means the JSONPath expression did not match any value in the input JSON. Try starting with a simpler path like $.store and then refine your expression.

Yes. Enable the “Show single value” option. When the JSONPath result contains exactly one match, the tool will display the value directly instead of wrapping it in an array.

You can use the “Copy Output” button to copy the result to your clipboard, or the “Download” option to save the result as a .json file.