Guide

THE TOOLBOX / DATA UTILITIES

Test & debug JSONPath
queries in real time.

Test and debug JSONPath expressions against complex JSON documents in real time. Supports recursive descent, array slicing, and filter expressions in a fast client-side Web Worker.

Sample Datasets:
Output View
36 lines · 748 B

748 / 500,000 UTF-16 code units · 748 UTF-8 bytes

Ready. Enter JSON and a JSONPath query.

THE DETAILS

JSONPath Syntax & Operator Cheat Sheet

Essential reference for JSONPath query syntax, selectors, and filter operators:

OperatorDescriptionExample ExpressionMatched Target
$Root object or array$Entire JSON document
.property / ['property']Child property operator$.store.bicycleBicycle object under store
..Recursive descent (all depths)$..authorAll authors anywhere in tree
*Wildcard (all keys / elements)$.store.book[*]All items in book array
[start:end]Array slice range$.store.book[0:2]First two books (indices 0 and 1)
[?(expr)]Filter expression predicate$.store.book[?(@.price < 10)]Books priced below 10
@Current element in filter[?(@.isbn)]Items having the 'isbn' property

Frequently Asked Questions

What is JSONPath and how is it used in software engineering?

JSONPath is a query expression language for JSON documents, analogous to XPath for XML. It lets developers, API testers, and data pipelines extract specific nodes, deeply nested properties, and filtered array slices without writing custom traversal loops.

How do recursive descent (..) and wildcards (*) work in queries?

The dot-dot (..) operator scans all object properties and array elements recursively regardless of depth. For example, $..author retrieves every author property in the entire tree. The asterisk (*) acts as a wildcard matching all keys or array items at that level.

Can I write boolean filter expressions like [?(@.price < 20)]?

Yes. The engine supports filter expressions using the [?(<expr>)] syntax. Inside the predicate, the at-sign (@) represents the current array item, enabling comparison operators (==, !=, <, <=, >, >=) and property existence checks like [?(@.isbn)].

How does array slicing work in JSONPath?

Array slicing uses Python-style [start:end:step] syntax. For example, [0:2] selects the first two elements (indices 0 and 1), [-1:] selects the final element, and [::2] selects every second element.

Does this tool transmit or log any JSON data?

No. All parsing and JSONPath evaluations run strictly inside an isolated Web Worker directly on your device. Zero telemetry, tracking, or network calls are performed.