Free online tools

JSONPath Tester

Explore a JSON document with a JSONPath query. Review the values and locations that match before using the query in a report or integration.

Enter your values

Paste valid JSON. Use double quotes around object member names.

Begin with $. Use names, indexes, slices, wildcards or descendant selectors.

This tool processes your input in your browser.

Result

Find members and array items

Start with $ for the whole document. Use $.catalog for a child member, $["order total"] for a name with a space, and $.books[0] or $.books[-1] for the first or last array item. An array index starts at zero.

Match multiple results and nested members

Use [*] for all children, [1:5:2] for selected array indexes, and [::-1] to read an array in reverse. A query such as $..title finds matching descendants at any nesting level. Results use JSON and can include bracket paths to each matched value.

Frequently asked questions

Which JSONPath syntax can I use here?

This RFC 9535 subset supports root, child names, integer indexes, wildcards, slices and descendants. Supply one selector per bracket. Filters, functions and multiple selectors in one bracket are outside its scope.

Why did a valid query return an empty array?

A query can be syntactically valid with zero matches. Check the member spelling, the array index and the level where each selector is placed.

How do I preserve a long numeric identifier?

Store long identifiers as JSON strings. Browser JSON numbers have finite precision, so quote values whose complete digits matter.