JSONPath Tester

Test JSONPath expressions against your JSON data and see matched results

JSON Data

Loading editor...

Results

Loading editor...

Related Tools

Frequently Asked Questions

JSONPath is a query language for JSON, similar to XPath for XML. It lets you select and extract specific values from JSON documents using expressions like $.store.book[0].title or $..price (all prices at any depth).

$ is the root, .key selects a child, [0] selects array index, [*] selects all items, .. selects recursively at any depth, and [?(@.price < 10)] filters by condition. Example: $.users[?(@.active==true)].name gets names of active users.

Paste your JSON data in the editor, type your JSONPath expression in the query field, and click Execute. The matching results appear instantly, showing both the values and their full paths in the document.

JSONPath uses dot notation ($.store.book[0]) while jq uses pipe syntax (.store.book[0]). JSONPath is mainly used in JavaScript/Java ecosystems, while jq is a command-line tool popular in shell scripting. Both query JSON data.