JSONPath Tester
Test JSONPath expressions with real-time matching
Frequently Asked Questions
What is JSONPath?
JSONPath is an XPath-like query language for JSON, letting you extract data with path expressions such as `$.store.book[*].author` to return every book's author. It is widely used in API testing, automation scripts, CI assertions, and log analytics.
What does this tool do?
Paste JSON data and a JSONPath expression to get live results. It is ideal for API debugging, prototyping ElasticSearch or MongoDB queries, and writing Postman test scripts.
Which syntax features are supported?
Mainstream operators: `$` (root), `.` (child), `..` (recursive descent), `[*]` (all elements), `[?(@.key=='value')]` (filter), and `[start:end]` (slice). Implementations (Goessner, Jayway) differ in edge cases — DevToolkit targets the most widely compatible variant in the JavaScript ecosystem.
Why isn't my filter expression matching?
- String values must be quoted: `@.price<10` is fine, but strings need `@.cat=='fiction'` - Property names with special characters require the `['key']` form - Regex matching is not standard JSONPath (needs extensions like `filter()`) The tool surfaces syntax errors inline.
Is my data uploaded?
No. JSON and expressions are evaluated in the browser, making it safe to test against sensitive fields in API responses.
JSONPath vs JMESPath vs JSONata?
JSONPath is the most widely adopted — natively supported by API Gateway, Kubernetes, Postman, and more. JMESPath is the default query language in the AWS CLI and has stricter syntax. JSONata reads like SQL, is the most powerful, and has the steepest learning curve. Default to JSONPath; choose JSONata for advanced data transformations.