JSONPath Tester — Try RFC 9535 Queries on Your JSON
Query nested JSON arrays and extract values live using dot/bracket paths.
2 matching nodes
- Result paths use the RFC 9535 normalized form, such as $['store']['book'][0]. The functions length(), count(), match(), search() and value() are supported.
When to use the RFC 9535 JSONPath Expression Live Tester
The full RFC 9535 standard
Name selectors, wildcards, negative indexes, slices with steps, descendants (..) and ?() filters with comparisons, &&, || and ! are supported. The implementation passes all 715 cases of the JSONPath Compliance Test Suite.
Built-in functions
length() counts characters, items or keys; count() counts nodes; match() and search() use I-Regexp; value() takes a single value. Calls with the wrong types are rejected when the query is read.
A path for every result
Every matching node is shown with its normalized path such as $['store']['book'][0], so it is clear where the value comes from and the path can be reused.
Errors pointed out
An invalid query, such as an unclosed quote or an unknown function, is marked with ^ at its position and a reason, instead of a silent empty result.
Frequently asked questions
What is the difference between .. and *?
* selects all direct children, while .. walks every descendant, so $..price finds price at any level.
How do I filter on two conditions?
Combine them with && or ||, for example $.store.book[[email protected] < 10 && @.category == 'fiction'].
Why are results in document order?
RFC 9535 returns a node list in document order; this tool keeps object keys in the order you wrote them.
Is my document uploaded?
No. Queries run in your browser.
How do I match text against a pattern?
Use match() for the whole string, such as $..book[?match(@.author, 'J.*')], or search() to find part of the text. Patterns use I-Regexp (RFC 9485), a simple regex subset that behaves the same in every programming language.
Similar tools
- JSON Formatter & Syntax PrettifierFormat messy single-line JSON with 2/4-space indentation and sorted keys.
- JSON Minifier & Whitespace CompressorStrip whitespace and newlines from JSON payloads and compare byte savings.
- RFC 8259 JSON Syntax Validator & DebuggerPinpoint trailing commas, unquoted keys & syntax errors with line/column clues.
- Interactive Collapsible JSON Tree ViewerInspect nested JSON keys, data types and object counts cleanly in a collapsible tree.