DataToolsLab
JSON Tools

JSON Path Query Tester

Run JSONPath queries against JSON data and see matched results instantly.

Loading tool…

What is JSONPath?

The JSON Path Query Tester lets you write and test JSONPath expressions against sample JSON data with instant feedback. No more debugging JSONPath queries by trial-and-error in your application code.

How it works

We parse the JSON data with our hand-rolled tokenizer, then evaluate your JSONPath expression using the jsonpath-plus library. Results are shown as a formatted JSON array of matches with the match count highlighted.

  1. Paste JSON data. Drop or paste sample JSON. A default store/book example is pre-loaded so you can start querying immediately.
  2. Write a JSONPath expression. Type a JSONPath expression like $.store.book[*].title or $..price. The match count updates live as you type.
  3. Copy the results. Copy the matched results as a JSON array, ready to paste into test assertions or data processing.

Examples

All book titles

$.store.book[*].title returns ['Book A', 'Book B'].

Deep search all prices

$..price returns [8.95, 12.99, 399] — all price values at any depth.

Common mistakes

Forgetting the $ prefix

JSONPath expressions start with $ (the root object). A bare $.store is valid; store alone is not.

Bracket vs dot notation

Use dot notation for simple keys ($.store.book) and bracket for keys with special chars ($['store']['book']).

Alternatives

JSON Tree Viewer

Explore the structure visually rather than via queries.

JSON Search

Full-text search across keys and values without learning JSONPath syntax.

Frequently asked questions

What JSONPath dialect is used?

We use jsonpath-plus, which follows the Goessner JSONPath specification. Some advanced features like filter expressions with @ are supported.

Can I save my queries?

Not yet — Wave 4 ships the interactive tester. Local history of recent queries is on the roadmap.

Online