How to write a JSONPath query, and how to check it
JSONPath is a short way to point at values inside a JSON document. It does for JSON what a file path does for folders. $ is the whole document. .store moves into the key store. [0] moves into the first item of a list. So $.store.book[0].title is the title of the first book. Many tools take JSONPath: API test runners, Kubernetes kubectl, log viewers, database clients and data pipelines. When an expression returns nothing, it is hard to tell if the path is wrong or the data is not what you expected. A tester shows you both, side by side.
Most real queries use four extra pieces. The wildcard * means every key or every item, so $.store.book[*].author lists every author. The double dot .. means at any depth, so $..author finds authors wherever they are. Slices take part of a list: [0:2] is the first two items and [-1:] is the last one. Filters keep only the items that pass a test: $..book[?(@.price < 10)] keeps the books that cost less than 10, where @ is the item being tested. You can join tests with && and ||, reverse one with !, and group them with parentheses.
Filters are where JSONPath libraries disagree most. RFC 9535, the 2024 standard, settled how comparisons work, and this tool follows it. Only values of the same kind compare. 8.95 equals 8.95, but it does not equal the string "8.95", and "x" < 1 is simply false. A filter with a path and no comparison tests that the key exists, so ?(@.isbn) keeps items that have an isbn key at all. Filter functions such as length() and match() are refused by name, because each library runs them differently, and a tester that guessed would mislead you.
Each match is listed with its full path, written as $.store.book[2].title. That path is useful in its own right. It tells you which item matched, not just what value came back, and you can paste it into code or into another query. Copy values as JSON gives every match as one array, ready for another tool. Copy paths gives one path per line. Numbers are shown exactly as written in your document, because the parser keeps their text, so a long ID is never rounded.
The document and the query never leave your browser. That matters when the JSON is an API response with customer data or tokens in it. The tool takes up to 2 MB of JSON at a time and shows the first 500 matches on the page; the copy buttons always include every match.