Parens notation
Setup
Selector: $(key,more)
{"key": 1, "some": 2, "more": 3}
Results
Consensus
Not supported
Other responses
Bash (JSONPath.sh)
[]
Clojure (json-path)
¹
null
Elixir (jaxon)
[]
JavaScript (jsonpath-plus)
[]
Kotlin (com.nfeld.jsonpathkt)
¹
null
PHP (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
PHP (softcreatr-jsonpath)
[]
Perl (JSON-Path)
[]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Ruby (jsonpath)
[
{
"key": 1,
"more": 3
}
]
Rust (jsonpath_lib)
[
{
"key": 1,
"more": 3,
"some": 2
}
]
Errors
path: invalid character at 1
key error: (key,more) not found in object
JavaScript (Goessner)
²
jsonPath: key is not defined: (key,more)
Rust (jsonpath_plus)
Error Parsing JSON Path:
$(key,more)
panic occurred
dotNET (JsonPathLib)
key is not defined
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.