# JSONPath Tester

> Free online JSONPath tester. Paste JSON, type an expression like $..book[?(@.price < 10)] and see every match live with its path and JSON Pointer.

- URL: https://tools.crawlink.com/jsonpath-tester
- Category: Developer Tools
- Price: Free, no account, no usage limits
- Privacy: Runs in your browser. The processing engine downloads once on first use, then the tool works offline. Your files never leave your device.

## What it does

JSONPath is a query language for JSON, like XPath for XML: $.store.book[0].title picks one value, $..price finds every price at any depth, and $..book[?(@.price < 10)] filters an array. Paste JSON, type an expression and this tester shows every match as you type, with its normalised path and JSON Pointer, and the matched values as a JSON array you can copy. It uses the jsonpath-plus library with its safe filter evaluator, in your browser.

## Features

- Live evaluation as you type
- Filters, recursive descent, wildcards, slices and unions
- Paths and JSON Pointers for each match
- Click-to-try example expressions
- JSON errors shown with position
- Safe filter evaluation, nothing uploaded

## How to use

1. Paste your JSON on the left (or keep the sample bookstore).
2. Type a JSONPath expression, or click one of the examples.
3. Read the matches on the right: values, paths and JSON Pointers.
4. Copy the result array or a single path.

## FAQ

### What does $ and @ mean in JSONPath?

$ is the root of the document, so every expression starts with it. @ is the current item inside a filter, so $..book[?(@.price < 10)] keeps the books whose own price is under 10.

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

A single dot selects a direct child: $.store.book. Two dots (recursive descent) search at any depth: $..author returns every author property anywhere in the document.

### How do I select array items?

Use [0] for the first item, [-1:] for the last, [0,2] for a union of indexes, [1:3] for a slice (items 1 and 2) and [*] for all items. Filters such as [?(@.isbn)] keep items that have a property.

### Is JSONPath the same everywhere?

Not quite. JSONPath was informally described by Stefan Goessner in 2007 and implementations differed; RFC 9535 (2024) now standardises it. This tester uses jsonpath-plus, which follows Goessner's syntax plus extras such as ^ for parent and ~ for property names. Check filter and edge-case behaviour against the library your code uses.

### Is my JSON sent anywhere?

No. The JSONPath library is downloaded once from a CDN and runs in your browser; your JSON stays on your device.

Also searched as: jsonpath tester, jsonpath online, jsonpath evaluator, json query, jsonpath expression, jsonpath filter example, json path finder.

## Related tools

- [JSON Formatter](https://tools.crawlink.com/json-formatter): Format, validate and minify JSON
- [JSON Schema Validator & Generator](https://tools.crawlink.com/json-schema-validator): Validate JSON against a schema (draft-07, 2019-09, 2020-12) or generate a schema from sample JSON
- [JSON Diff](https://tools.crawlink.com/json-diff): Compare two JSON documents by path and value
- [JSON to Code](https://tools.crawlink.com/json-to-code): Generate TypeScript, Zod, Go, Python or SQL from JSON
- [Data Format Converter](https://tools.crawlink.com/data-converter): Convert between CSV, JSON, YAML, XML and SQL
- [Regex Tester](https://tools.crawlink.com/regex-tester): Test regular expressions with live match highlighting

---
Part of Tools by Crawlink — https://tools.crawlink.com/ · All tools: https://tools.crawlink.com/llms.txt
