JSONPath Tester
Test JSONPath expressions against JSON data with real-time result display
JSONPath Tester — Evaluate and Debug JSONPath Expressions Against JSON Data with Real-Time Results, Syntax Reference, and Sample Data
- Paste or type your JSON data into the input area — the tool validates your JSON as you type and highlights syntax errors with specific line references. JSONPath is to JSON what XPath is to XML — a query language for navigating and extracting data from JSON documents. While json.parse() in code gives you the whole object, JSONPath lets you surgically extract exactly the data you need: $.store.book[*].title extracts all book titles from a bookstore JSON in a single expression, equivalent to data.store.book.map(b => b.title) in JavaScript. JSONPath is widely used in API testing, data transformation pipelines, configuration management, and no-code/low-code platforms.
- Enter a JSONPath expression in the second input field. The tool supports the complete JSONPath syntax: dot notation ($.store.book) for direct child access, bracket notation ($['store']['book']) for keys with special characters, wildcard (*.price) to match any key, array slice ([0:3] for first three elements, [-3:] for last three), recursive descent ($..author to find all 'author' keys at any nesting depth), union selector ([0,2,4] for specific indices), filter expressions ([?({'@'}.price < 10)] to filter by child values, supporting comparison operators == != < <= > >= and logical operators && {'|'}{'|'}), and the current node reference ({'@'} within filter expressions).
- As you type, the tool evaluates your expression against the JSON in real-time and displays the matched results. Successful matches appear as extracted JSON values (strings, numbers, objects, or arrays) with a match count — you can see exactly which parts of the data your expression selects. Syntax errors in the JSONPath expression are caught and reported with descriptive messages. A helpful sample JSON dataset is provided by default (a bookstore catalog with nested books, authors, and prices) so you can start experimenting immediately without pasting your own data. Use JSONPath for: extracting API response fields for assertions in Postman tests, filtering large configuration files, transforming data in ETL pipelines, and building dynamic form renderers. All evaluation runs locally using the jsonpath-plus library — your JSON data, which may contain API keys or business data, never leaves your browser.
Enable JavaScript to use these tools.