JSONPath Tester

Enter JSON data and a JSONPath expression to find and extract matching values.

Examples:

How to Use

  1. 1Paste your JSON document into the data input area.
  2. 2Enter a JSONPath expression in the query field.
  3. 3View the matching nodes highlighted in the JSON tree.
  4. 4Copy the matched results as a JSON array.

Frequently Asked Questions

What is JSONPath?

JSONPath is a query language for JSON, similar to XPath for XML. It lets you navigate and extract specific values from a JSON document using expressions like $.store.book[0].title.

What JSONPath syntax is supported?

The tool supports dot notation, bracket notation, wildcards (*), recursive descent (..), array slices ([start:end:step]), and filter expressions ([?(@.price < 10)]).

Can I use JSONPath to filter JSON arrays?

Yes. Use filter expressions like $..book[?(@.price<10)] to select only elements that match a condition. Multiple filters can be combined for complex queries.