JSONPath Evaluator & Query Tester Online
Test JSONPath expressions online with live results. Supports $, *, recursive descent, array slices and filters, plus a built-in syntax cheat sheet. Free.
JSONPath is a query language for JSON, the equivalent of XPath for XML. Paste a document and an expression such as $.items[?(@.price < 10)].name into the left pane, and every matching node is listed in the right pane as you type.
| Expression | Description | Example |
|---|---|---|
| $ | Root of the JSON document | $ |
| .key | Child member operator | $.store.name |
| ['key'] | Bracket notation (for keys with spaces) | $['store name'] |
| [n] | Array subscript (0-indexed) | $.items[0] |
| [-n] | Array subscript from end | $.items[-1] |
| [*] | Wildcard โ all items/properties | $.items[*] |
| [a:b] | Array slice from a (inclusive) to b (exclusive) | $.items[0:3] |
| .. | Recursive descent โ search all descendants | $..name |
| [?(@.field op val)] | Filter expression (==, !=, <, >, <=, >=) | $..book[?(@.price < 10)] |
๐ Real-Time Structural Payload Evaluation
Programmatic Execution Modules
Native runtime recipes for automated pipelines โข Zero external cloud dependencies
npx json2x-cli --tool=jsonpath < input.jsonimport { readFileSync } from 'node:fs';
const raw = readFileSync('./payload.json', 'utf-8');
const data = JSON.parse(raw);
console.log('Processed payload successfully:', Object.keys(data).length, 'keys');UTF-8 Byte Order Marks (BOM) & Multi-Byte Surrogate Pairs
Encoding Boundary GuardFiles exported from Windows or legacy systems frequently contain the UTF-8 BOM (0xEF, 0xBB, 0xBF), breaking native parsers. The client-side stream processor strips BOM headers before evaluation.
IEEE 754 Double Precision Float Truncation
Numeric Mantissa LimitsLarge integers (> 9,007,199,254,740,991) lose precision in standard JSON parsers due to 53-bit mantissa limitations. When high-precision IDs are processed, string representation should be preserved.
๐ Task-Specific Reference Guides & Specifications
1 Technical GuidesFrequently Asked Questions: JSONPath Tester
What is JSONPath?
JSONPath is a query expression language for JSON, analogous to XPath for XML. It allows you to filter, select, and extract nodes from deeply nested structures.
What are common JSONPath syntax operators?
$ denotes the root object; @ represents the current node; * matches all elements; .. performs recursive descent; [start:end:step] slices arrays; [?(@.price < 10)] filters items.
How do I test a JSONPath expression online?
Paste your document, type the expression, and matches are evaluated as you type โ no run button. Preset buttons fill in common patterns such as $, recursive descent and a filter, which is the fastest way to get the syntax right.
How do I filter an array by a field value?
Use a filter expression: $.items[?(@.price < 10)] returns cheap items, and $.users[?(@.active == true)].email returns the emails of active users. @ refers to the item currently being tested.
Is this JSONPath tester free, and is my document uploaded?
It is free with no account, and nothing is uploaded. Evaluation runs in your browser, so you can safely test expressions against a real production response.
๐ Developer Query Intent Index
How to use the JSONPath Tester
Step-by-step workflow โ executed 100% locally in your browser memory.
- 1
Paste your document
Put the JSON you want to query into the left-hand input pane.
- 2
Write an expression
Enter a JSONPath expression beginning with `$`, the root. Start broad โ `$..name` โ then narrow it.
- 3
Read the matches
The right-hand pane lists every matching node with its resolved path, updating live as you edit the query.
- 4
Copy the working selector
Once the match set is right, copy the expression into your code, your jq-adjacent tooling, or a CI assertion.
โก Technical Specifications & Engineering Compliance Matrix
| Specification Standard | RFC 8259 / IEEE 754 Standard / UTF-8 |
|---|---|
| Architecture: | serializer-pipeline |
| Time Complexity | O(N) single-pass stream processing |
| Memory Footprint | O(N) linear client-side memory profile |
| Data Privacy & Egress | Zero remote transmission (100% in-browser memory) |
| Last reviewed | by the JSON2X Core Team. |
Related Developer Tools
Architecture: serializer-pipeline •Spec: RFC 8259 / IEEE 754 Standard / UTF-8 •Last reviewed by the JSON2X Core Team.