JSONPath Tester

What is a JSONPath Tester?

Query, test, and evaluate JSONPath expressions (`$.store.book[*].author`, `$..price`, $[?(@.price < 10)]) against complex JSON documents. Displays live matched JSON nodes with syntax highlighting and match counts.

Why Use This Tool?

  • API Response Inspection: Test JSONPath queries used in REST API assertions, Postman tests, or Kubernetes kubectl JSONPath filters.
  • ETL Data Pipeline Testing: Verify JSONPath extraction expressions for Apache NiFi, Airflow, or Logstash pipelines.
  • Deep JSON Extraction: Query nested JSON arrays and objects without writing custom JavaScript loops.

How to Use

  1. Paste your JSON payload into the document editor.
  2. Enter JSONPath expression (e.g. `$.users[?(@.active == true)].email`).
  3. View matched result array and node matches in real time.

Real Working Example

Input:

JSON: { "store": { "book": [{ "title": "Book A", "price": 8.95 }, { "title": "Book B", "price": 12.99 }] } }
Query: $.store.book[?(@.price < 10)].title

Output Result:

Matches Found: 1
Result Array:
[
  "Book A"
]

Important Technical Details & Specifications

  • JSONPath AST Query Engine: Supports root `$`, dot notation `.prop`, bracket `["prop"]`, wildcard `*`, recursive descent `..`, slice `[0:2]`, and filter expressions `[?()]`.
  • Monaco/CodeMirror Editor: Syntax-highlighted code editor with live syntax error markers.
  • 100% Client-Side Memory: Large JSON documents are queried locally without server uploads.

Related Data & Format Tools

Frequently Asked Questions

What is JSONPath?

JSONPath is a query language for JSON documents, similar to what XPath is for XML.

What does $. store.book[*].author mean in JSONPath?

`$` selects the root object; `.store.book[*]` selects all book objects in the array; `.author` extracts their author property values.

What is the difference between single dot (.) and double dot (..)?

Single dot (`.`) accesses direct child properties; double dot (`..`) performs a recursive descent search across all nested levels.

Is it free?

Yes, 100% free.

Are my JSON payload documents uploaded to a server?

No, all JSONPath evaluation executes 100% locally inside your web browser.

Can I use filter expressions like [?(@.age > 18)]?

Yes, logical filter comparison expressions are supported.