JMESPath Online Tester & Evaluator
Test and validate JMESPath queries in real-time. JMESPath is a query language for JSON, used extensively in AWS CLI, Ansible, and other tooling. Paste JSON, write an expression, and get results instantly.
Input JSON
Live evaluation (300ms)Result
JSON output[ "Alice", "Carol" ]
Generate Code
# pip install jmespath
import json
import jmespath
data = json.loads("""...""")
expr = jmespath.compile("people[?age > `30`].name")
result = expr.search(data)
print(json.dumps(result, indent=2))What is JMESPath?
JMESPath is a declarative JSON query language. It lets you project, filter, and reshape JSON data without writing loops or custom code. AWS CLI, Azure CLI, and Ansible all rely on JMESPath to extract values from command outputs and API responses.
Key capabilities
- Filtering arrays with simple boolean conditions
- Projections for arrays and objects to reshape data
- Built-in functions such as sort_by, length, join, and more
- Pipe expressions to chain transformations
Common use cases
- Filtering AWS CLI output for reports and dashboards
- Validating API responses in DevOps pipelines
- Transforming JSON before exporting to CSV or spreadsheets
- Building dynamic projections inside applications
New · CSV Export
Export JMESPath results to CSV in one click
Bridge the gap: JMESPath itself does not output CSV. Our converter gives you instant CSV downloads tailored for AWS CLI data.
AWS CLI guide
Practical JMESPath patterns for EC2, S3, Lambda, IAM, and more with copy-ready commands.
Read →Python integration
jmespath library usage, compiled expressions, pandas CSV export, and error handling.
Read →JMESPath functions
Reference for every JMESPath function with examples and pitfalls.
Read →Also testing the web UI?
Try our new XPath playground for Selenium and Playwright
Validate XPath selectors, highlight matches, and generate Selenium code without leaving the browser.
FAQ
▶What is JMESPath?
JMESPath is a query language for JSON, used widely in AWS CLI, Azure CLI, and Ansible to filter and transform JSON output with simple expressions.
▶How is JMESPath different from JSONPath?
JMESPath focuses on transformations and projections without the $ prefix, while JSONPath is more path-oriented; JMESPath is built into AWS CLI and supports functions like sort_by and length.
▶Can I use this tool with AWS CLI output?
Yes. Paste your AWS CLI JSON output, write a JMESPath expression, and view results instantly. Use the CSV converter page to export filtered data.
▶Does this tool run locally or send data to a server?
Everything runs in your browser. JSON input stays on your device; nothing is uploaded to a server.
▶Do I need to add a $ prefix?
No. JMESPath expressions do not use the $ prefix. Start directly with keys or functions, e.g., people[?age > `30`].name.
▶How do I generate code for production?
Use the code generator tabs to copy ready-made snippets for Python, JavaScript, Go, Java, PHP, or C#. Replace the JSON placeholder and expression with your own.