
Loading…
Developer tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Try $..price, $.store.book[-1], $.store.book[0:2] or $..book[?(@.isbn)]
The result appears here.
Need JSONPath Tester built into your own product? We build it as a full app, API and admin included. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The jsonpath tester stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Skip the build: ready-made apps with the code included. Buy once, own the source, and try each one live first.


Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo$ is the whole document. $.store.book walks into keys.$..price finds every key called price at any depth.[*] or .* selects all children of an object or array.[0] is the first item and [-1] the last. [0,2] picks several. ['a b'] handles keys with spaces.[1:3] is a slice, and [::2] takes every second item.A filter keeps the children for which a condition is true. Inside it, @ means the current child.
$.store.book[?(@.price < 10)] compares a number.$..book[?(@.category == 'fiction' && @.price > 10)] combines tests.$..book[?(@.isbn)] keeps items that have an isbn at all.$..book[?(!@.isbn)] keeps items that do not.Comparisons use ==, !=, <, <=, > and >=. Ordering works for two numbers or two strings; anything else is simply false.
The first line gives the number of matches. Each match shows its normalized path and its value. An empty result is not an error: it means the expression is valid but nothing in the document fits.
Build expressions step by step: start from $, add one segment at a time and watch the output. Results are capped at 5,000 matches to keep the page responsive.
The root $, child names, recursive descent .., wildcards, array indexes including negative ones, unions, slices with a step, quoted names and filter expressions with comparisons, && , || , ! and existence tests.
No. Expressions are parsed by a small hand-written parser and evaluated on your data, so nothing in an expression can run code.
Common causes: a typo in a key name, using a dot before a bracket (write $.a[0], not $.a.[0]), or comparing a number with a quoted string. Filters compare types strictly, so 5 and "5" are different.
A canonical way to address one value, such as $['store']['book'][0]. Every match is shown this way, so you can copy the exact location into code or a bug report.
No, they are an unsafe feature of older implementations. Use a negative index instead: [-1] is the last item.