Dot notation after recursive descent with extra dot
Setup
Selector: $...key
{
"object": {
"key": "value",
"array": [
{"key": "something"},
{"key": {"key": "russian dolls"}}
]
},
"key": "top"
}
Results
Consensus
Not supported
Other responses
Bash (JSONPath.sh)
[
"russian dolls",
"something",
"top",
"value"
]
C (json-glib)
[]
Clojure (json-path)
¹
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Elixir (jaxon)
[
"top"
]
[]
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
[
"russian dolls",
"russian dolls",
"russian dolls",
"russian dolls",
"russian dolls",
"something",
"something",
"something",
"something",
"top",
"value",
"value",
{
"key": "russian dolls"
},
{
"key": "russian dolls"
},
{
"key": "russian dolls"
},
{
"key": "russian dolls"
}
]
Haskell (jsonpath)
[
"russian dolls",
"russian dolls",
"russian dolls",
"russian dolls",
"russian dolls",
"something",
"something",
"something",
"something",
"top",
"value",
"value",
{
"key": "russian dolls"
},
{
"key": "russian dolls"
},
{
"key": "russian dolls"
},
{
"key": "russian dolls"
}
]
JavaScript (Goessner)
²
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
JavaScript (jsonpath-plus)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Java (com.github.jsurfer)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Kotlin (com.nfeld.jsonpathkt)
¹
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
PHP (Goessner)
²
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Perl (JSON-Path)
[]
Python (jsonpath)
²
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Raku (JSON-Path)
[
"russian dolls",
"something",
"value",
{
"key": "russian dolls"
}
]
Ruby (jsonpath)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Rust (jsonpath_plus)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
dotNET (Json.NET)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
dotNET (JsonPathLib)
[
"russian dolls",
"something",
"top",
"value",
{
"key": "russian dolls"
}
]
Errors
expression don't support in filter
PHP (softcreatr-jsonpath)
TypeError
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.