JSONPath Tester & Evaluator Online
Run standard RFC 9535 JSONPath queries against your JSON and see every matched value or its normalized path. Queries run in an isolated worker in your browser.
Your text never leaves your browser.
RFC 9535 syntax, starting with $. 0 / 2,000 UTF-16 code units.
Before 0After — code units
Always a JSON array, shown as plain textOutput options
Values lists each matched JSON value. Paths lists RFC 9535 normalized paths such as $['users'][0]['name']. Switching never reruns the query. Reset shows values and clears the expression; your JSON input is kept.
Summary
Waiting for JSON and an expression
- Matches
- —
- JSON input
- 0
- Output
- —
- Mode
- Values
Lengths are UTF-16 code units.
What JSONPath does
JSONPath is a query language for selecting values inside a JSON document, much like XPath for XML. A query such as $.users[*].name walks from the root into the users array and picks the name of every user. This tester implements the syntax and functions of RFC 9535, the 2024 IETF standard. Historical JSONPath dialects can differ; check queries before moving them between tools.
Paste JSON on the left (or load the sample), type an expression and the result appears about a third of a second after you stop typing. Choose Values to see the matched JSON or Paths to see where each match lives.
Syntax at a glance
| Syntax | Selects |
|---|---|
| $ | The root of the document |
| .name or ['name'] | A member of an object |
| [0], [-1] | An array element by index, negative from the end |
| [0:2], [::2] | A slice: start, end (exclusive) and step |
| * or [*] | Every member or element |
| ..name | Descendants at any depth |
| [?@.age >= 18] | A filter; @ is the current item |
| [0,2] | Several selectors at once; duplicates are kept |
Examples against the sample
Each expression below produces exactly the result shown when run on the built-in sample.
| Expression | Result |
|---|---|
| $.users[*].name | ["Ana", "Ben", "Zoë"] |
| $.users[0].name | ["Ana"] |
| $.users[-1].name | ["Zoë"] |
| $.users[0:2].name | ["Ana", "Ben"] |
| $.users[?@.age >= 18].name | ["Ana", "Zoë"] |
| $.users[?@.active == true].id | [1, 3] |
| $.users[?@.email == null].id | [2] |
| $.users[*].tags[*] | ["admin", "editor", "editor"] |
| $.meta.count | [3] |
| $..name | ["Ana", "Ben", "Zoë"] |
| $.missing | [] |
| $.users[0,0].id | [1, 1] |
Results, paths and errors
The result is always a JSON array: no match is [], a matched null is [null], and a repeated selection such as $.users[0,0].id returns [1, 1]. In Paths mode each match is shown as an RFC 9535 normalized path such as $['users'][0]['name'], with quotes, backslashes and control characters escaped.
Invalid JSON and invalid expressions are reported separately and never produce output. Legacy syntax such as [(@.length-1)] or =~ is rejected with a hint toward the standard alternative, for example [-1] or match().
Privacy and limits
Your JSON never leaves the browser. Queries run in an isolated Web Worker that is stopped after 1.5 seconds, so a heavy query cannot freeze the page. JSON input is limited to 500,000 and expressions to 2,000 UTF-16 code units. A query may return at most 1,000 matches and 2,000,000 code units of output; beyond that you get a clear limit message and no partial result.
Numbers are parsed with the standard JSON.parse, so integers beyond 9,007,199,254,740,991 may lose precision. Related tools: the JSON Formatter, the JSON Schema Validator and the JSON to TypeScript converter.
Frequently asked questions
Is JSONPath the same as JSON Pointer?
No. JSON Pointer (RFC 6901) identifies a single location with slash-separated tokens such as /users/0/name. JSONPath selects a list of nodes using queries such as $.users[*].name. This tool returns RFC 9535 normalized JSONPath locations, not JSON Pointers.
Which JSONPath syntax does this tester support?
It follows RFC 9535, the IETF standard for JSONPath published in 2024. Queries start with $, use dot or bracket member names, wildcards, indexes, negative indexes, slices, descendant selection with .., and filters with ?. Older dialects that run JavaScript, such as script expressions in [(...)], are not supported.
Why is the result always an array?
A JSONPath query selects a list of nodes, which can be empty, one or many. The tester always shows that list as a JSON array, so no match gives [] and a matched null value gives [null]. Repeated selections such as $.users[0,0] are kept as duplicates.
What is a normalized path?
A normalized path is the RFC 9535 canonical location of a matched value, written with bracket notation and single-quoted names, for example $['users'][0]['name']. Switch the output to Paths to see where each match is in the document.
How do filters work?
A filter such as $.users[?@.age >= 18] keeps the array items or object members for which the condition is true. @ is the current item. Comparisons use ==, !=, <, <=, > and >=, conditions combine with &&, || and !, and the functions length(), count(), match(), search() and value() are available.
Is my JSON uploaded anywhere?
No. Parsing and querying run in a Web Worker in your browser. Your JSON and expressions are never sent to a server, stored or logged.
Are there size limits?
The JSON input is limited to 500,000 UTF-16 code units and the expression to 2,000. A query may return at most 1,000 matches and 2,000,000 code units of output, and is stopped after 1.5 seconds. When a limit is reached, no partial result is shown.