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.

Input JSON
Query Result

JMESPath Quick Reference

🔍 Basic Expressions

  • field — field access
  • a.b.c — nested access
  • arr[0] — array index
  • arr[-1] — last element
  • arr[*] — wildcard
  • arr[2:5] — slice

🔧 Built-in Functions

  • length(arr) — count
  • keys(obj) — object keys
  • values(obj) — object values
  • sort(arr) — sort array
  • sort_by(arr, &field)
  • min_by / max_by
  • to_string / to_number
  • contains(arr, val)

⚡ Projections & Filters

  • arr[*].name — list projection
  • arr[?x == `val`] — filter
  • arr[*].{a: x, b: y} — object
  • arr[*].[x, y] — multi-select list
  • a || b — or expression
  • arr[] — 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.