Bracket notation with quoted escaped backslash
Setup
Selector: $['\\']
{"\\":"value"}
Results
Other responses
Bash (JSONPath.sh)
[]
C (json-glib)
[]
Cpp (jsoncons)
[
"value"
]
Dart (json_path)
[
"value"
]
Elixir (ExJsonPath)
[]
Elixir (jaxon)
[]
Elixir (warpath)
¹
null
Erlang (ejsonpath)
[]
[
"value"
]
"value"
"value"
[]
[
"value"
]
[
"value"
]
Haskell (jsonpath)
[
"value"
]
JavaScript (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
JavaScript (brunerd)
[
"value"
]
JavaScript (jsonpath)
[]
JavaScript (jsonpath-plus)
[]
Java (com.github.jsurfer)
[]
Java (com.jayway.jsonpath)
¹
³
"value"
Kotlin (com.nfeld.jsonpathkt)
¹
"value"
Objective-C (SMJJSONPath)
¹
³
"value"
PHP (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
PHP (galbar-jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
PHP (remorhaz-jsonpath)
[
"value"
]
PHP (softcreatr-jsonpath)
[]
Perl (JSON-Path)
[]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Python (jsonpath-ng)
[
"value"
]
Python (jsonpath-rw)
[
"value"
]
Python (jsonpath2)
Not supported
line 1:2 token recognition error at: '''
ValueError("line 1:2 token recognition error at: '''")
Raku (JSON-Path)
[]
Ruby (jsonpath)
[]
Rust (jsonpath)
Not supported
parsing error
Rust (jsonpath_lib)
Not supported
path error:
$['\\']
^^
Rust (jsonpath_plus)
[]
Scala (jsonpath)
[]
Swift (Sextant)
[
"value"
]
dotNET (Json.NET)
[
"value"
]
dotNET (JsonCons.JsonPath)
[
"value"
]
dotNET (JsonPath.Net)
[
"value"
]
dotNET (JsonPathLib)
[]
dotNET (Manatee.Json)
[
"value"
]
JSON (Path_Reference_Implementation)
[
"value"
]
Proposal (A)
[
"value"
]
Errors
Clojure (json-path)
¹
java.lang.Exception object must be an array.
strconv.Atoi: parsing "'\\\\'": invalid syntax
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.