Filter expression with empty expression
Setup
Selector: $[?()]
[1, {"key": 42}, "value", null]
Results
Consensus
Not supported
Other responses
Bash (JSONPath.sh)
[]
Clojure (json-path)
¹
[]
Elixir (jaxon)
[]
[]
JavaScript (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
JavaScript (jsonpath-plus)
[]
PHP (galbar-jsonpath)
[]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Ruby (jsonpath)
[
1,
{
"key": 42
},
"value"
]
dotNET (JsonPathLib)
[]
Errors
not enough arguments
wrong request: wrong request: ?()
PHP (Goessner)
²
ArgumentCountError
Perl (JSON-Path)
non-safe evaluation, died at main.pl line 11.
Rust (jsonpath_plus)
Error Parsing JSON Path:
$[?()]
panic occurred
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.