Dot notation after recursive descent
Setup
Selector: $..key
{
"object": {
"key": "value",
"array": [
{"key": "something"},
{"key": {"key": "russian dolls"}}
]
},
"key": "top"
}
Results
Consensus
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Other responses
Bash (JSONPath.sh)
[
"russian dolls",
"something",
"top",
"value"
]
C (json-glib)
[
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Elixir (jaxon)
[
"top"
]
Raku (JSON-Path)
[
"russian dolls",
"something",
"value",
{
"key": "russian dolls"
}
]
Rust (jsonpath)
Not supported
parsing error
Scala (jsonpath)
[
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Errors
expression don't support in filter
Footnotes
- ¹ This implementation returns a single value where only one match is possible (instead of an array of a single value).
- ² This implementation returns a specific not found value if no match exists.
- ³ This implementation returns a specific not found value if a query that would regularly return a single match results in no match.