# JSONPath Tester

> Run JSONPath queries on your JSON live, with filters, paths and a syntax guide. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/jsonpath-tester

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/jsonpath-tester

**Also useful for:** jsonpath, json path, jsonpath online, jsonpath evaluator, query json, json query, jsonpath filter

## What you can do

- **Filter by value** — Pick items whose fields match a condition, like price < 10. ([open with this preset](https://toffeekit.com/tools/jsonpath-tester?preset=filter))
- **Deep scan with ..** — Find a key at any depth in a large document. ([open with this preset](https://toffeekit.com/tools/jsonpath-tester?preset=deep))
- **List matching paths** — Get the exact path of every match to use in code. ([open with this preset](https://toffeekit.com/tools/jsonpath-tester?preset=paths))

## How it works

1. Paste your JSON into the JSON panel, or keep the bookstore sample.
2. Type a query starting with $ in the JSONPath query box. Results update as you type.
3. Switch Show between Values, Paths and Both.
4. Click any example under Syntax and examples to try it, then Copy or Save the result.

## FAQ

### What is JSONPath?

JSONPath is a query language for JSON, like XPath for XML. $ is the root, a dot or [ ] selects children, .. searches at any depth and [?( )] filters items.

### How do I filter an array by a field value?

Use a filter expression such as $..book[?(@.price < 10)]. @ is the current item, and you can combine conditions with && and ||.

### What is the difference between $.* and $..*?

$.* returns only the direct children of the root. $..* returns every value at every depth.

### How do I get the last item of an array?

Use a slice with a negative start, such as $..book[-1:]. [:2] returns the first two items and [0,2] picks items by index.

### How do I refer to the root inside a filter?

Use @root, for example $..book[?(@.price > @root.expensive)]. Plain $ isn't available inside filters in this engine.

### Is JSONPath Tester free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

JSONPath Tester runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

