Query Knowledge Base

JSONPath Tester: Evaluate JSONPath Queries Instantly Online

Test JSONPath expressions against any JSON document online. Supports $, .., *, [?()], and filter expressions. Free, browser-only JSONPath evaluator.

What is JSONPath?

JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract specific values from complex nested JSON documents using path expressions. JSONPath is used in AWS CloudFormation, Kubernetes, Grafana, Postman tests, and many API tools.

Core JSONPath Syntax

  • $ — Root of the document
  • .key — Child property access
  • ..key — Recursive descent (find key anywhere)
  • [*] — All array elements
  • [0] — Array index access
  • [?(@.age > 18)] — Filter expression
  • [0:3] — Array slice

Common JSONPath Use Cases

  • Extracting nested values from API responses in Postman tests
  • AWS CloudFormation cross-stack references
  • Kubernetes JSON patch operations
  • Grafana dashboard variable queries

Try Our Free Client-Side Developer Tools

Zero latency, 100% data privacy, and Web Worker performance.

Launch Tool

Frequently Asked Questions

What JSONPath specification does the tester follow?

The tester follows the Goessner JSONPath specification, which is the most widely implemented standard.

Are filter expressions supported?

Yes. Filter expressions like [?(@.age > 18)] and [?(@.type == "admin")] are fully supported.

Can I test multiple JSONPath expressions?

Yes. Each expression is evaluated independently against the same JSON document in real time.

Related JSON Topics & Reference Articles