DataFormattools
JSON · Evaluator

JSONPath Tester & Query Evaluator

Test and evaluate JSONPath expressions against JSON documents online. Extract data, query arrays, and debug JSONPath queries in real time.

JSONPath Expression Evaluator0 matches
JSONPath:
JSON Document0 lines
Matched Query Results
100% In-Browser Privacy: All conversions, formatting, and validations run purely on your machine using client-side JavaScript. Your data, code snippets, and environment variables are never transmitted to any server or recorded in logs.
Specifications

How JSONPath Tester Works

  • Executes standard JSONPath query evaluation using JSONPath-Plus.
  • Supports root ($), recursive descent (..), wildcards (*), array slices ([0:2]), and filters ([?(@.price < 10)]).
  • Outputs matching nodes as a clean JSON array with match count.
Demonstration

Example Input & Output

Evaluates the JSONPath query $.store.book[*].author against the bookstore document, extracting an array of all author names.

JSON Document
{
  "store": {
    "book": [
      {
        "category": "reference",
        "author": "Nigel Rees",
        "title": "Sayings of the Century",
        "price": 8.95
      },
      {
        "category": "fiction",
        "author": "Evelyn Waugh",
        "title": "Sword of Honour",
        "price": 12.99
      },
      {
        "category": "fiction",
        "author": "Herman Melville",
        "title": "Moby Dick",
        "isbn": "0-553-21311-3",
        "price": 8.99
      }
    ]
  }
}
JSONPath Match Results
[
  "Nigel Rees",
  "Evelyn Waugh",
  "Herman Melville"
]
Applications

Common Use Cases

Data Extraction

Query specific properties from massive nested API payloads without writing custom code.

Test Automation

Test JSONPath assertion queries used in Postman, RestAssured, or Cypress tests.

Guidelines

Key Specifications & Gotchas

Root Selector

Expressions should begin with $ (e.g. $.store.book[0]).

Questions

Frequently Asked Questions

What is JSONPath?

JSONPath is a query expression language for JSON, similar to XPath for XML, used to select and extract values from JSON structures.

Can I filter items by value in JSONPath?

Yes! Use filter expressions like $.store.book[?(@.price < 10)] to match objects meeting specific criteria.

Related JSON & Data Format Tools

View all 41 tools →