JMESPath Query Tester
Filter, sort and reshape JSON with JMESPath expressions. Inspect native result types, upload UTF-8 JSON and export complete results.
Filter and reshape JSON
Paste a JSON document and a JMESPath expression, then Run. Projections such as users[].name omit null results; map(&name, users) preserves them. Filters use backtick JSON literals, for example users[?active == `true`]. A pipe evaluates the next expression against the complete intermediate result. The JSON result can be an object, array, string, number, boolean or null. Missing fields return null; a valid null result can still be copied and downloaded.
Sort, count and combine
Use sort_by(users, &score)[].name for ordered names, length(users) for a count, and {names: users[].name, count: length(users)} for a combined object. The sample filters active users and sorts them by score. Quoted identifiers address keys with spaces or punctuation. Queries run as the JMESPath language, not as JavaScript. There is no eval, custom JavaScript function registration or network access.
Engine and portability
The engine is JMESPath Community 1.3.0. It supports the original language and Community extensions, so expressions using extensions may not run in an AWS CLI or another implementation. The specifications are linked below. Valid JSON keys, including __proto__ and expref, remain ordinary data; inherited JavaScript properties are not query fields.
Raw single-quoted strings follow Community JEP 12a: a pair of backslashes becomes one backslash. This can differ from original JMESPath implementations. Bare unquoted text inside backticks is rejected; use single-quoted raw strings or JSON double-quoted strings instead.
Input, precision and limits
JSON must be strict UTF-8 with no comments or trailing commas; duplicate member names are rejected before querying. Integers outside ±9,007,199,254,740,991 and non-finite numeric values are rejected, including numeric literals in expressions. Quote long identifiers as strings. Other numbers use JavaScript binary floating-point precision; this is not a lossless numeric transformer. Input is limited to 1 MiB, the expression to 4,096 characters, and data/results to depth 64 and 20,000 nodes.
Files, output and cancellation
Upload a UTF-8 JSON file or paste text. Choose pretty or compact JSON; output remains JSON even for scalar results. The visible preview stops at 200,000 characters, while Copy and Download retain the complete permitted result, up to 2 MiB. Queries use a disposable local Worker with a five-second deadline. Cancel, editing a field or loading another file invalidates stale work. No input is uploaded to a server.
FAQ
Is JMESPath the same as JSONPath?
No. JMESPath defines projections, filters, pipes and typed functions. JSONPath uses a different grammar and result model; choose the language required by your application.
Why did a missing field return null?
JMESPath returns null for a field that is absent or not applicable. This is a valid JSON result, not an empty output or parser error.
Can I query long numeric IDs without rounding?
Store long IDs as strings. This tool rejects unsafe integer values and uses ordinary binary floating-point arithmetic for other numbers.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Check projections, filters, sorting, scalar results and property-name boundaries and run saved normative cases.
- Comparison reference
- JMESPath Community normative fixtures and expected results; execution uses @jmespath-community/jmespath.
- Verification scope
- These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
-
query-auth-tools.test.js
- JMESPath projections, filters, sort_by, maps and native scalar JSON results
- JMESPath own properties, __proto__ results, merge and shadowed member names remain JSON data
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.