JSONPath Tester

Free online JSONPath tester. Paste JSON, type an expression like $..book[?(@.price < 10)] and see every match live with its path and JSON Pointer.

JSONPath is a query language for JSON, like XPath for XML: $.store.book[0].title picks one value, $..price finds every price at any depth, and $..book[?(@.price < 10)] filters an array. Paste JSON, type an expression and this tester shows every match as you type, with its normalised path and JSON Pointer, and the matched values as a JSON array you can copy. It uses the jsonpath-plus library with its safe filter evaluator, in your browser.

Runs in your browser. The processing engine downloads once on first use, then the tool works offline. Your files never leave your device. Free, no sign-up.

Features

How to use JSONPath Tester

  1. Paste your JSON on the left (or keep the sample bookstore).
  2. Type a JSONPath expression, or click one of the examples.
  3. Read the matches on the right: values, paths and JSON Pointers.
  4. Copy the result array or a single path.

Frequently asked questions

What does $ and @ mean in JSONPath?

$ is the root of the document, so every expression starts with it. @ is the current item inside a filter, so $..book[?(@.price < 10)] keeps the books whose own price is under 10.

What is the difference between . and .. ?

A single dot selects a direct child: $.store.book. Two dots (recursive descent) search at any depth: $..author returns every author property anywhere in the document.

How do I select array items?

Use [0] for the first item, [-1:] for the last, [0,2] for a union of indexes, [1:3] for a slice (items 1 and 2) and [*] for all items. Filters such as [?(@.isbn)] keep items that have a property.

Is JSONPath the same everywhere?

Not quite. JSONPath was informally described by Stefan Goessner in 2007 and implementations differed; RFC 9535 (2024) now standardises it. This tester uses jsonpath-plus, which follows Goessner's syntax plus extras such as ^ for parent and ~ for property names. Check filter and edge-case behaviour against the library your code uses.

Is my JSON sent anywhere?

No. The JSONPath library is downloaded once from a CDN and runs in your browser; your JSON stays on your device.

Related tools

All free tools · This tool as Markdown