Bracket notation with quoted special characters combined
Setup
Selector: $[':@."$,*\'\\']
{":@.\"$,*'\\": 42}
Results
Other responses
Bash (JSONPath.sh)
[]
C (json-glib)
[]
Cpp (jsoncons)
[
42
]
Dart (json_path)
[
42
]
Elixir (ExJsonPath)
Not supported
illegal characters "\\"
Elixir (jaxon)
[]
Elixir (warpath)
¹
null
[
42
]
Not supported
parsing error: $[':@."$,*\'\\'] :1:3 - 1:16 could not parse string: invalid syntax
Not found
[]
[
42
]
[
42
]
Haskell (jsonpath)
[
42
]
JavaScript (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
JavaScript (brunerd)
[
42
]
JavaScript (jsonpath)
[]
JavaScript (jsonpath-plus)
[]
Java (com.github.jsurfer)
[]
Java (com.jayway.jsonpath)
¹
³
42
Kotlin (com.nfeld.jsonpathkt)
¹
42
Objective-C (SMJJSONPath)
¹
³
Not supported
Found empty property at index 15
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)
[
42
]
PHP (softcreatr-jsonpath)
[]
Perl (JSON-Path)
[]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Python (jsonpath-ng)
[
42
]
Python (jsonpath-rw)
[
42
]
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
Rust (jsonpath)
Not supported
parsing error
Rust (jsonpath_lib)
[]
Scala (jsonpath)
[]
Swift (Sextant)
[
42
]
dotNET (Json.NET)
[
42
]
dotNET (JsonCons.JsonPath)
[
42
]
dotNET (JsonPath.Net)
[
42
]
dotNET (JsonPathLib)
[]
dotNET (Manatee.Json)
[
42
]
JSON (Path_Reference_Implementation)
[
42
]
Proposal (A)
[
42
]
Errors
Clojure (json-path)
¹
java.lang.Exception object must be an array.
Erlang (ejsonpath)
Timeout
strconv.Atoi: parsing "@.\"$,*\\'\\\\'": invalid syntax
Ruby (jsonpath)
invalid value for Integer(): "*\\'\\\\'"
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.