How to use the JSONPath Tester
1. Paste your JSON in the left panel.
2. Enter a JSONPath expression in the path field (e.g. $.users[*].email).
3. Click Run — matching values are shown in the result panel. Try the example paths to learn the syntax.
What is it?
JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract specific values or arrays from nested JSON structures. It's used in AWS CloudWatch, Kubernetes ingress rules, Postman test scripts, API gateway mapping templates, and many CI/CD tools.
Benefits
Spot structural bugs at a glance
Formatted output reveals missing brackets, extra commas, and misaligned blocks that are completely invisible in minified or compressed code.
Faster code reviews
Reviewers focus on logic and correctness instead of deciphering indentation. Paste formatted output directly into PRs, issue comments, or Slack.
Documentation-ready output
Well-formatted JSON, SQL, XML, and YAML paste cleanly into READMEs, API docs, Confluence pages, and Notion without additional reformatting.
Editor-independent cleanup
Format any file from any source in seconds — no Prettier config, no ESLint setup, no language-specific formatter to install and configure.
Frequently asked questions
What does $ mean?
$ is the root element. All JSONPath expressions start with $.
What's the difference between . and .. ?
. is a direct child ($.store.book). .. is a recursive descent that searches all descendants (i.e. $..price finds all price values at any depth).
How do I filter by a condition?
Use filter expressions: $.book[?(@.price < 10)] selects books where price is less than 10. @ refers to the current element.