JSONPath tester
Run a JSONPath expression against JSON and list every match with its path.
Loading the tool…
What it does, how to use it, and questions
What it does
JSONPath selects values inside JSON with expressions such as $.store.book[0].title. Dialects differ; this page documents a Goessner-like subset: $, .key, ["key"], [n], [*] and recursive descent where implemented.
Matches are listed with a concrete path and the JSON value at that path.
How to use it
- Paste JSON.
- Enter a path expression.
- Read the matches or the error.
Things to watch for
- Filter expressions and script expressions are not supported.
- Array indexes are zero-based.
Questions
- Which dialect is this?
- A documented Goessner-like subset. It is not every feature of RFC 9535 or every library.
- How do I select all array items?
- Use
[*]on the array, for example$.items[*].id. - Can I update JSON with a path?
- No. This tool only queries.
- Is the JSON uploaded?
- No.