Bracket notation with quoted escaped single quote
Setup
Selector: $['\'']
{"'":"value"}
Results
Consensus
[
"value"
]
Scalar consensus
The scalar consensus applies for implementations which return a single value where only one match is possible (instead of an array of a single value).
"value"
Other responses
Bash (JSONPath.sh)
[]
C (json-glib)
[]
Elixir (ExJsonPath)
Not supported
illegal characters "']"
Elixir (jaxon)
[]
Elixir (warpath)
¹
null
JavaScript (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
JavaScript (jsonpath)
[]
JavaScript (jsonpath-plus)
[]
JavaScript (jsonpathly)
[]
Java (com.github.jsurfer)
[]
PHP (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
PHP (galbar-jsonpath)
[]
PHP (softcreatr-jsonpath)
[]
Perl (JSON-Path)
[]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Python (jsonpath2)
Not supported
line 1:2 token recognition error at: '''
ValueError("line 1:2 token recognition error at: '''")
Raku (JSON-Path)
Not supported
JSON path parse error at position 1
Ruby (jsonpath)
[]
Rust (jsonpath)
Not supported
parsing error
dotNET (JsonPathLib)
[]
Errors
Clojure (json-path)
¹
java.lang.Exception object must be an array.
Erlang (ejsonpath)
Timeout
strconv.Atoi: parsing "'\\''": invalid syntax
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.