deftools.io Developer Tools

JSONPath Explorer

Query JSON with JSONPath expressions ($.store.book[*].author, $.users[?(@.age>18)]). Inline engine, no libraries. Live results, path highlighting, sample data, deep-linking. 100% client-side.

$
Try:
0 B
0 matches
JSONPath syntax cheatsheet
$root object
.keychild by key (dot notation)
['key']child by key (bracket, supports special chars)
*all children of current node
..keyrecursive descent (any depth)
[n]array index (negative = from end)
[a:b]array slice (Python-style, optional step)
[a,b,c]union of multiple indices/keys
[?(expr)]filter expression
@current node (inside filters)
@.keyfield of current node (filter)
== != < >comparison operators (filters)
&|| &&logical or / and (filters)
=~ /re/regex match (filters)
Notes: filters support comparison of numbers, strings, booleans, and null. String literals use single or double quotes. This is an inline engine — a subset of RFC 9535 is supported (no script expressions ($..a), no parent ^). Tested against the canonical goessner.net examples.
Copied!