JSONPath Tester

JSONPath Tester

Query JSON with JSONPath expressions and inspect exact matched paths and values.

Input

Query Output

About The JSONPath Tester

The JSONPath Tester evaluates JSONPath expressions against pasted JSON and shows the matched paths, values, or both. It is useful for checking extraction logic before using it in tests, API clients, automation scripts, monitoring rules, or documentation examples.

This tester supports common JSONPath patterns such as child properties, bracket keys, array indexes, wildcards, unions, slices, recursive descent, and simple filters. JSONPath behavior can vary between libraries, so compare results with your production parser when exact compatibility matters.

How to Test JSONPath Online

  1. Paste JSON into the JSON input area.
  2. Enter a JSONPath expression such as $.store.book[*].title.
  3. Choose Paths and values, Values only, or Paths only from Output mode.
  4. Click Run Query to evaluate the expression.
  5. Use Load sample to see a realistic nested JSON example with matching output.

Choosing Options Correctly

Paths and values:
Use this when debugging because it shows where each match came from and what value was selected.

Values only:
Use this when you only need the extracted data array for a fixture, script, or quick copy.

Paths only:
Use this when you are checking coverage, field locations, or whether a query touches the expected branches.

Common Use Cases

  • Test JSONPath queries for API response assertions.
  • Find nested values in large response samples without manually expanding every branch.
  • Check filters such as [?(@.price >= 40)] before moving them into code.
  • Document which paths a monitoring or extraction rule depends on.

Quick FAQ

Does every JSONPath feature work here?
No. JSONPath implementations vary, especially around filters, recursive descent, and functions.

Why do results differ from another tool?
Different JSONPath libraries support different dialects and result formats. Test against the library used in your app.

Does this run locally?
Yes. JSONPath testing is designed to run in the browser.

Why did I get no matches?
Check array indexes, property names, quoting, case, and whether the path starts from the document root expected by this tester.