DevSandbox
0 network calls
0 matches
Local

JSONPath tester and query evaluator

Test, evaluate, and extract data from JSON documents with JSONPath queries. All evaluation executes client-side with zero server latency and zero data exposure.

How to evaluate JSONPath expressions

  1. Paste your JSON document into the left pane, or click Sample to load a demonstration store dataset.
  2. Type a JSONPath expression into the query bar at the top (e.g. $.store.book[*].title or $..price).
  3. Press Evaluate or hit ⌘↵ / Ctrl↵. Matched elements and values are displayed formatted in the results panel.
  4. Click Copy JSON to place the extracted data straight onto your clipboard.

JSONPath syntax reference

SyntaxNameMeaning
$Root objectReferences the root JSON element or object.
.nameChild propertySelects a direct child property by key name.
..nameRecursive descentSearches recursively for all nested properties matching the name.
*WildcardMatches all properties or array elements at the current level.
[n]Array indexAccesses array element at index n (0-based).
[start:end]Array sliceExtracts array items from index start up to end.
[?(@.price < 10)]Filter expressionFilters array elements matching the boolean condition.

Common JSONPath examples

Frequently asked questions

What is JSONPath?

JSONPath is a standardized query language for JSON documents, analogous to XPath for XML. It allows developers to selectively extract properties, nested structures, array slices, and filtered items using clean path expressions starting with $.

Does this JSONPath tester send my JSON to any server?

No. The JSONPath query evaluator runs 100% client-side in your browser using JavaScript. No document content or queries are ever transmitted over the network.

What operators does this JSONPath evaluator support?

It supports root ($), child property (.key or ['key']), recursive descent (..key), array indices ([0]), array slicing ([0:2]), wildcards (*), and comparison filter expressions ([?(@.price < 10)]).