JMESPath Playground
Query and transform JSON with JMESPath — the standardized JSON query language (RFC 9535) used by AWS CLI, boto3, CloudFormation, and many other tools.
JMESPath Quick Reference
🔍 Basic Expressions
field— field accessa.b.c— nested accessarr[0]— array indexarr[-1]— last elementarr[*]— wildcardarr[2:5]— slice
🔧 Built-in Functions
length(arr)— countkeys(obj)— object keysvalues(obj)— object valuessort(arr)— sort arraysort_by(arr, &field)min_by / max_byto_string / to_numbercontains(arr, val)
⚡ Projections & Filters
arr[*].name— list projectionarr[?x == `val`]— filterarr[*].{a: x, b: y}— objectarr[*].[x, y]— multi-select lista || b— or expressionarr[]— flatten
About JMESPath (RFC 9535)
JMESPath is a query language for JSON standardized as RFC 9535 in 2024. It is used natively by the AWS CLI (--query flag), the Python boto3 SDK, AWS CloudFormation, and numerous integration platforms. Unlike JSONPath, JMESPath has a formal specification with no ambiguity, making it ideal for reliable, reproducible data extraction in scripts and automation pipelines.
This playground uses the official jmespath.js library (RFC 9535 compliant), the same engine used by the AWS CLI.