Back to tools

JSONPath Tester

Test JSONPath expressions against any JSON document. Live evaluation, filter syntax, and preset queries. Built on jsonpath-plus. Runs in your browser. No data sent.

304 chars
3 matches

How It Works

  1. 1

    Paste JSON

    Drop your document on the left. A sample is preloaded.

  2. 2

    Write or pick a query

    Type a JSONPath expression, or click a preset.

  3. 3

    See matches live

    Results update as you type, with a live match count.

Use Cases

  • Build API test assertions

    Prototype the JSONPath you'll use in REST Assured, Postman, or Bruno tests.

  • Probe webhook payloads

    Drill into a sample webhook to find the exact path to a field.

  • Configure observability tools

    Test the JSONPath you'll paste into Datadog, Splunk, or Grafana extractors.

  • Author Kubernetes JSONPath

    Test the path you'll use in `kubectl get -o jsonpath=…` queries.

Frequently Asked Questions

JSONPath is a query language for JSON. Think XPath, but for JSON documents. Expressions like `$.store.books[*].title` extract values from a JSON tree. Widely used in API response assertions, configuration tools, and observability platforms.
The `jsonpath-plus` JavaScript implementation, which extends the original Stefan Goessner spec with filter expressions like `[?(@.price < 15)]`, recursive descent (`$..`), and script expressions. Matches what most JavaScript and Node.js tooling uses.
`$.store.books[*]` — every book. `$.store.books[0]` — the first book. `$..title` — every `title` field at any depth. `$.store.books[?(@.price < 15)]` — books cheaper than $15. `$.store.books[-1]` — the last book. `$.store.books[0:2]` — the first two. Click a preset above to try each one.
Yes — `kubectl get -o jsonpath=...` uses a JSONPath dialect that overlaps heavily with the JavaScript variant here. Most expressions you write here will work with kubectl. Exception: kubectl uses `range`/`end` template syntax for iteration, which is kubectl-specific. Test the path against your JSON here, then paste it into your kubectl command.
Yes. Use filter syntax: `$.books[?(@.price < 15)]` returns all books cheaper than $15. `@` refers to the current element under iteration.
Recursive descent. Searches every level of the document. `$..title` returns every `title` field at any depth.
No. The JSON and the JSONPath query are evaluated entirely in your browser.
Yes. The result panel shows matches as JSON, and you can copy them to your clipboard for use in tests or fixtures.

Done generating test data? Now automate the tests.

Bug0's expert AI agents write end-to-end tests from plain English, auto-heal them when your UI changes, and run them on every deploy. A forward-deployed engineer verifies every result.

From $2,500/mo. Results in 7 days.

Go on vacation. Bug0 never sleeps. - Your AI QA engineer runs 24/7

Go on vacation.
Bug0 never sleeps.

Your AI QA engineer runs 24/7 — on every commit, every deploy, every schedule. Full coverage while you're off the grid.