JSONPath Explorer & Evaluator
An interactive JSONPath expression tester, evaluator, and node tree visualizer. Test complex queries, filter expressions, recursive searches, and array indexing on JSON documents in real time. Click on any node in the interactive tree view to auto-generate its exact JSONPath.
How to Query JSON with JSONPath
JSONPath is an expression language used to extract, query, and filter specific nodes or properties from a JSON object or payload.
1. Basic Operators & Syntax
$: The root object or element. Every JSONPath expression starts with$..propertyor['property']: Access a child property (e.g.$.store.book)...: Deep recursive scan for property names anywhere in the JSON hierarchy (e.g.$..priceretrieves allpriceproperties at any depth).*or[*]: Wildcard matching all elements in an array or properties in an object (e.g.$.users[*]).[n]: Select array element by 0-based index (e.g.$.store.book[0]).
2. Filter Expressions [?(@...)]
Filter expressions allow matching array items based on specific conditions:
$.store.book[?(@.price < 10)]: Matches books costing less than 10.$.users[?(@.role == "Admin")]: Matches user objects whereroleequals"Admin".$.items[?(@.active == true)]: Matches items whereactiveistrue.
3. Interactive Tree Navigation
- Switch to Interactive Tree View to inspect the hierarchy of nested JSON keys and values.
- Click on any property or node to automatically copy its exact JSONPath expression into the query input!
Key Features
- Real-Time JSONPath Query Engine: Live evaluation of expressions like
$.store.book[?(@.price < 10)]with instant visual output highlighting. - Interactive Tree Navigation: Browse nested object trees visually and click any node to auto-copy its exact JSONPath selector.
- Filter & Wildcard Support: Deep recursive search (
..), wildcards (*), array slicing, and conditional property filtering. - 100% Client-Side Privacy: All parsing, querying, and evaluations run locally in your browser.
Common Use Cases
- Extracting Nested API Response Fields: Quick pinpointing of nested fields in deep JSON responses (e.g., retrieving all product prices from a complex e-commerce REST response).
- Automated Testing & Assertions: Testing and writing JSONPath expressions for automated test scripts in frameworks like Postman, REST Assured, or Playwright.
- Data Pipeline Filtering: Constructing JSONPath expressions for log aggregation tools (e.g., Fluentd, Logstash, AWS CloudWatch Insights) to extract target key-value pairs.
- Interactive JSON Schema Navigation: Visually browsing unknown or large JSON structures and copying precise element JSONPath paths with a single click.
Frequently Asked Questions
Is JSONPath evaluation performed locally?
Yes! All JSON parsing, query processing, and path evaluations occur entirely in your web browser. No data or JSON payloads are ever transmitted to external servers.
What is the difference between . and ..?
.navigates down one level in the object hierarchy...performs a recursive search across all levels of the JSON structure to find matching key names.
Where can I learn more about advanced JSONPath expressions?
For a full breakdown of filter expressions, script expressions, and real-world API querying patterns, read our complete guide on Mastering JSONPath.
Related Tools
JSON Formatter
Pretty print, format, and sort keys of your JSON data.
JSON Validator
Validate JSON syntax and isolate error locations instantly.
JSON Minifier
Compress and strip unnecessary whitespaces from your JSON.
Privacy-First XML ↔ JSON Converter
Convert hierarchical xml data schemas to JSON structures and vice versa.
