JSONPath Tester
Test JSONPath expressions against your JSON data. Supports dot notation, bracket notation, wildcards, array slices, recursive descent, and filter expressions.
Results will appear here...
JSONPath Syntax Reference
| Expression | Description | Example |
|---|---|---|
| $ | Root object | $ (the entire document) |
| .key | Child property | $.store.name |
| ['key'] | Bracket notation | $['store']['name'] |
| [0] | Array index | $.books[0] |
| [-1] | Last element | $.books[-1] |
| [0:3] | Array slice (start:end) | $.books[0:3] |
| [0:4:2] | Slice with step | $.books[0:4:2] |
| [0,2] | Multiple indices | $.books[0,2] |
| .* | All children (wildcard) | $.store.* |
| [*] | All array elements | $.books[*] |
| .. | Recursive descent | $..price |
| [?()] | Filter expression | $.books[?(@.price > 20)] |
| @.key | Current node (in filter) | [?(@.inStock == true)] |
Related Tools
Frequently Asked Questions
What is JSONPath?
JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract specific values from complex JSON structures using path expressions. Originally proposed by Stefan Goessner in 2007, it's widely used in API testing, data processing, and configuration management.
What JSONPath features does this tool support?
This tool supports: dot notation ($.key), bracket notation ($['key']), array indexing ([0], [-1]), slicing ([0:3], [::2]), wildcards (*), recursive descent (..), union ([0,2]), and filter expressions ([?(@.price > 10)]). Filters support ==, !=, >, <, >=, <= operators and existence checks.
What is recursive descent (..)?
The .. operator searches through all levels of the JSON structure. For example, $..price finds every 'price' field regardless of depth. It's useful when you know the key name but not its exact location in the hierarchy.
Is my data safe?
Yes. All JSONPath evaluation happens entirely in your browser using JavaScript. No data is sent to any server. Your JSON data never leaves your machine.