developer-tools

JSONPath Tester

Test JSONPath expressions against sample JSON locally in your browser and inspect matched paths, values, and dialect boundaries.

Tool workspace

The interactive tool requires JavaScript.

Instructions

1. Paste a valid JSON object or array into the JSON field.
2. Enter a JSONPath expression using the documented browser-local dialect.
3. Click Test JSONPath and review the matched paths, values, and match count.
4. Copy the result only after confirming the target library uses compatible JSONPath semantics.

Paste a JSON document and a JSONPath expression to check which values match before using the query in docs, API debugging, data extraction notes, or test fixtures. Processing stays browser-local and the supported dialect is listed in the result.

JSONPath Tester supports the $ root, dot properties, bracket properties, array indexes, wildcards, recursive descent, and simple comparison filters such as ?(@.price < 10). It does not execute scripts, functions, arbitrary expressions, network requests, or non-local data access.

Supported dialect

The tester supports $, .name, ['name'], [0], [*], ..name, ..*, and simple filters in the form ?(@.field == value), !=, >, >=, <, or <=. Filter values may be strings, numbers, booleans, or null.

Browser-local sample testing

The JSON document and query are evaluated in the browser. The tool does not upload sample data, call external APIs, fetch URLs, or store query history.

Compatibility boundaries

JSONPath implementations vary. This tester does not support script expressions, functions, slices, unions, parent operators, or custom library extensions, so final queries should be checked in the production library.