Bracket notation with quoted string and unescaped single quote
Setup
Selector: $['single'quote']
{"single'quote":"value"}
Results
Consensus
Not supported
Other responses
Bash (JSONPath.sh)
[]
C (json-glib)
[]
Elixir (jaxon)
[]
JavaScript (Goessner)
²
[
"value"
]
JavaScript (jsonpath-plus)
[
"value"
]
PHP (Goessner)
²
[
"value"
]
PHP (galbar-jsonpath)
[
"value"
]
PHP (softcreatr-jsonpath)
[
"value"
]
Perl (JSON-Path)
[]
Python (jsonpath)
²
[
"value"
]
Ruby (jsonpath)
[
"value"
]
dotNET (JsonPathLib)
[
"value"
]
Errors
Clojure (json-path)
¹
java.lang.Exception object must be an array.
Erlang (ejsonpath)
Timeout
path: invalid character at 10
strconv.Atoi: parsing "'single'quote'": invalid syntax
Rust (jsonpath_plus)
Error Parsing JSON Path:
$['single'quote']
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.