JSONPath Tester
Write a JSONPath expression and instantly query any JSON. Supports dot/bracket notation, wildcards, recursive descent, array slices and filter expressions.
Results appear here
$Root of the document.propertyChild property['key']Bracket child notation[n]Array index[-1]Last array element[*]All array elements[start:end]Array slice..propertyRecursive descent (deep scan).*All children of an object?(@.prop op val)Filter expression?(@.prop)Filter: property exists?(@.prop=="val")Filter: string equalityWhat is JSONPath?
JSONPath is a query language for JSON, analogous to XPath for XML. It lets you extract specific values from a JSON document using a path expression — for example, $.store.book[*].title extracts all book titles from a store object. JSONPath is used in Kubernetes selectors, API testing tools, and data transformation pipelines.
This tool lets you test JSONPath expressions interactively against any JSON document, with live results as you type.
How to test a JSONPath expression online
- Paste your JSON document into the JSON panel.
- Enter a JSONPath expression in the Path field.
- The matched values appear instantly in the Results panel.
Frequently Asked Questions
What does $ mean in JSONPath?
$ represents the root element of the JSON document. All JSONPath expressions start with $. For example, $.name returns the value of the name property at the top level.
What is the difference between . and .. in JSONPath?
. is a child operator — $.a.b selects property b of property a. .. is a recursive descent operator that selects all properties with a given name at any depth in the document.
What does [*] mean in JSONPath?
[*] is a wildcard subscript that selects all elements of an array or all properties of an object. For example, $.books[*].author selects the author of every book.
What is the difference between JSONPath and jq?
Both are tools for querying JSON. JSONPath is a standardised query language used in many tools and languages. jq is a more powerful command-line processor with its own language that supports transformations, not just querying.