JSONPath Tester
test JSONPath expressions against JSON data in real time
By DevLab Editorial TeamLast updated
Test JSONPath expressions against a JSON document and see matching values instantly. Supports dot notation (.key), bracket notation ([0]), and wildcards (.* and [*]). Enter a path like $.store.books[0].title and the matched value appears immediately. All evaluation runs in the browser.
Try it now — free, instant, no signup
What is JSONPath Tester?
JSONPath is a query language for JSON documents, analogous to XPath for XML. A JSONPath expression starts with $ (the root document), followed by a chain of selectors: .key for property access, [n] for array indexing, .* or [*] for wildcards that match all properties or all array elements. The result is a list of values extracted from the JSON tree that match the path.
JSONPath is used across a wide range of tools and frameworks: jq, Kubernetes policy engines (OPA, Kyverno), AWS Step Functions, Postman test assertions, Elastic Search queries, and data transformation libraries in Python, Java, and JavaScript. Knowing how to write and debug JSONPath expressions is increasingly important as JSON APIs proliferate.
This tester implements the core JSONPath subset: root ($), property access (.key), array indexing ([n] including negative indices for last element), wildcards (.* and [*]), and basic recursive path handling. Filter expressions ([?(@.price < 10)]) are not yet supported as their syntax varies significantly between implementations. RFC 9535, published February 2024, is now the formal IETF standard for JSONPath.
When to use JSONPath Tester
Expert Notes
The most common JSONPath mistake is using $..key (recursive descent) expecting it to work like $.*.key — recursive descent searches all levels of nesting, which can return unexpected results from deeply nested documents. Always test recursive paths against a representative sample before deploying them in a policy or pipeline rule.
DevLab's Take
Essential for anyone writing Postman tests, OPA policies, or Kubernetes admission controllers — the visual feedback of seeing exactly which values a path matches saves significant trial-and-error against a live system.