About the JSONPath & JMESPath Tester
Try path queries on sample JSON without sending data to a server. Switch between JSONPath and JMESPath on the same document.
The original path box still evaluates a JSONPath-like query, and the default example ($.user.roles[0]) still returns "admin". The engine now also understands recursive descent, simple filters such as [?(@.price>10)], and slices.
A second mode runs a compact JMESPath subset: dotted identifiers, indexes, wildcards, slices, pipes and simple filters. Switch modes with the tabs; the query is rewritten to the usual style for that language so you can compare them on the same document. The Matches output remains a readonly JSON list, which is what scripts and tests already expect. Filters let you keep array items that match a simple comparison, for example a price greater than ten, without writing a loop. Slices follow the usual start:end idea from Python. Recursive descent is useful when a field such as id appears at more than one depth and you want every occurrence. If a query is invalid or the JSON cannot be parsed, the output box shows the error instead of a guess, so you can fix the input rather than trust a silent empty list. None of this requires a network call, which makes it safe to try a path against a fixture you would rather not post to a hosted playground.
How to use the JSONPath & JMESPath Tester
- 1Paste JSON.
- 2Choose JSONPath or JMESPath and enter a query.
- 3Read the matches.
Key features
- JSONPath filters, slices and recursive descent, plus a JMESPath subset.
Practical uses
- Extracting a nested list from an API payload before you write production code.
Tips and common mistakes
- Start with the default Ada/roles sample, then paste a real (non-secret) payload.
Limitations
- The JMESPath implementation is a subset: functions such as sort_by are not included, to keep the page small.
Privacy
Documents and queries stay in the browser.
Frequently asked questions
Full JSONPath?
Subset: dots, [index], [*].
Uploads?
No.
YAML?
Convert to JSON first.
Errors?
Invalid JSON is reported.
Which should I learn first?
JSONPath is common in documentation and some databases. JMESPath appears in AWS CLIs. The default tab stays on JSONPath.