How to use JSONPath Query Tester
- Paste JSON or choose one UTF-8 JSON file. A selected file replaces the pasted document.
- Enter a supported path or choose All titles, First book or Every price. Use bracket-quoted names for keys outside the simple dot-name grammar.
- Read each value alongside its JSON Pointer. Download jsonpath-matches.json for all accepted matches; long values and large selections are shortened in the table.
Example: JSONPath Query Tester
Select both book titles and keep their distinct JSON Pointer locations.
Options
- Selection syntax
- Start with $. Use named children, array indices, wildcards, start:end:step slices or recursive named members. Negative indices count from the array end. Filters, unions, functions, script evaluation and JMESPath are unsupported.
- Pointers and exports
- A JSON Pointer identifies a selected value’s location; an empty pointer identifies the root. The table shows the first 200 matches and shortens values to 500 characters. The JSON download keeps all accepted matches and their values, subject to the output limit.
Supported inputs and limits
- JSON input up to 1,000,000 UTF-8 bytes, 20,000 nodes and 32 levels; duplicate object keys are refused.
- Query input is limited to 2,048 UTF-8 bytes and 64 segments, with numeric indices and slice bounds within ±1,000,000.
- Selection stops above 100,000 operations or 1,000 matches.
- A slice step of zero selects nothing.
- The result JSON is limited to 2,000,000 bytes.
More details
This is the documented RFC 9535 subset, not full grammar support; it does not rewrite data or validate it against a schema.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
An empty selection is a result
Check the spelling of property names, whether a node is an array and the actual indexes before changing the query. This tool selects data; it does not validate the document against a schema or rewrite it. Keep the path export when downstream work needs to distinguish identical values from different records.
Questions about JSONPath Query Tester
Why does a query fail instead of returning nothing?
Unsupported query syntax is refused; a supported query with no matches has an empty result.
Can I use JMESPath or filters?
No. This tool supports only the listed JSONPath selectors.
Is a missing property the same as null?
No. A missing property is not selected, while an existing null value can be a match.