Supported syntax
| Expression | Meaning | Example result |
|---|---|---|
$.user.name | Property access | "Ada" |
$.items[0] | Array index | first element |
$.items[*].id | Wildcard over array | list of ids |
$['key with space'] | Bracket property | value of that key |
$.a.b.c | Nested access | deep value |
$..id | Recursive descent (limited) | all id values |
Filters (?(@.price < 10)), slices ([1:3]), and jq pipes are not supported. Use jq locally for those; this page is for quick path checks.
Why paths beat clicking through a tree
A JSON viewer shows structure but not the exact path expression your code needs. Testing the path here gives you the literal string to paste into a client library or a config, which avoids the usual trial-and-error in code.
- Start at
$for the root. - Quote keys with spaces or dots:
$['content-type']. - A wildcard returns an array; a concrete index returns a single value.