JSONPath & JMESPath Playground.
Run JSONPath (RFC 9535) or JMESPath queries against JSON and see the matches and their normalized paths.
Runs in your browserAbout JSONPath & JMESPath Playground
The JSONPath & JMESPath Playground evaluates a query against a JSON document as you type, so you can build the expression for a Kubernetes jsonpath output, an AWS CLI --query, a Postman test or a log pipeline before putting it into code. JSONPath follows RFC 9535, the 2024 IETF standard: $ for the root, .name and ['name'] members, [0] and [-1] indexes, [start:end:step] slices, * wildcards, .. descendant search, unions such as [0,2], and filters like [[email protected] < 10 && @.isbn]. The standard functions length(), count(), match(), search() and value() are supported. Next to the values you get the normalized path of every match, such as $['store']['book'][2]['title'], which tells you exactly where each result came from. JMESPath is the language behind the AWS CLI and Azure CLI. The playground implements the full specification: sub-expressions, projections with [*] and [], filter projections [?price > `10`], multi-select lists and hashes, pipes, slices, and all built-in functions including sort_by, max_by, join, to_number, merge and not_null. Unlike JSONPath, JMESPath reshapes data: store.book[*].{title: title, cost: price} returns new objects. Common mistakes are mixing the two syntaxes, for example writing $.store in JMESPath or store.book in JSONPath; forgetting that JMESPath literals need backticks (`10`, `"fiction"`) or single quotes for raw strings; and comparing a wildcard such as @.* in a JSONPath filter, which RFC 9535 does not allow. Syntax errors show the column where parsing stopped. jq is not included because it needs a WebAssembly build. All queries run in your browser.
How to Use
- Paste your JSON and choose JSONPath or JMESPath.
- Type a query; the result updates as you type.
- Copy the result, or the matched paths for JSONPath.
Frequently Asked Questions
Which JSONPath dialect is this?
RFC 9535, the IETF standard published in 2024. Older implementations (Goessner's original, Jayway) differ in details such as filter syntax ?(@.a) versus [email protected]; both forms of parentheses work here, but script expressions like (@.length-1) are not part of the standard.
What is the difference between JSONPath and JMESPath?
JSONPath selects nodes and returns a list of matches with their locations. JMESPath is a full expression language that can also reshape data with projections, multi-select hashes and functions, and it returns a single JSON value.
Is jq supported?
Not yet. jq needs a WebAssembly build to run in the browser and on mobile offline, so it is not part of this offline tool. JSONPath and JMESPath cover most selection and filtering tasks.
Is my JSON uploaded?
No. Queries are evaluated in your browser and the page makes no network requests.
Related Tools
Pretty print, minify, and validate JSON.
View JSON as a tree with types and sizes, and get the JSONPath and JSON Pointer of every value.
Validate JSON against a JSON Schema (draft 2020-12) and see every error with its JSON Pointer.
Compare two JSON documents and see every added, removed and changed value by path.
Fix broken JSON — trailing commas, single quotes, comments, missing brackets — and see every repair made.
Generate a draft 2020-12 JSON Schema from sample JSON, with required fields, formats and merged array items.