Skip to content
Categories
JSONPath Tester
Evaluate a JSONPath expression against JSON and see the matching values and paths.
Overview
- Evaluates a JSONPath expression against the JSON you enter and lists the matching values along with each one's normalized path (e.g. $['store']['book'][0]).
- Supports common JSONPath syntax including wildcards (*), recursive descent (..), and filter expressions (conditions like ?(@.price > 10)).
- Evaluation uses the jsonpath-plus library, and processing happens entirely in your browser.
Usage
- Enter the target JSON into the JSON field.
- Enter the expression to evaluate into the JSONPath expression field (e.g. $.store.book[*].title).
- Click the "Evaluate" button to see the list of matching values and paths.
Example
Input
JSONPath expression: $.store.book[?(@.price > 15)].title
Output
"Book B" (path: $['store']['book'][1]['title'])
Use Cases
- Building and checking a JSONPath expression to extract a specific value from an API response, before implementing it
- Trying out an expression to extract only data matching certain conditions from a config file or log JSON
- Checking whether a JSONPath expression returns the expected value while debugging code that uses a JSONPath library
FAQ
What JSONPath syntax is supported?
Dot notation, bracket notation, wildcards (*), recursive descent (..), array slices, filter expressions (?()), and generally whatever the jsonpath-plus library supports.
What does the displayed "Path" mean?
It's the normalized JSONPath notation indicating the location of the matched value — an unambiguous expression you can use to access the same value again.
Is the JSON I enter sent anywhere?
No. The evaluation happens entirely in your browser.
Notes
- Filter expressions (?()) are evaluated internally as JavaScript expressions. Do not run untrusted JSONPath expressions.
- Invalid JSON is treated as a syntax error.
Related Tools
Validate whether JSON is correctly formatted.
Evaluate an XPath expression against XML and see the matching elements, attributes, or values.
Convert JSON into YAML format.