Dot notation with double quotes after recursive descent

Setup

Selector: $.."key"

{
  "object": {
    "key": "value",
    "\"key\"": 100,
    "array": [
      {"key": "something", "\"key\"": 0},
      {"key": {"key": "russian dolls"}, "\"key\"": {"\"key\"": 99}}
    ]
  },
  "key": "top",
  "\"key\"": 42
}

Results

Other responses

Bash (JSONPath.sh)

[
  "russian dolls",
  "something",
  "top",
  "value"
]

C (json-glib)

[
  0,
  100,
  42,
  {
    "\"key\"": 99
  }
]

Clojure (json-path) ¹

[]

Cpp (jsoncons)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Dart (json_path)

Not supported

FormatException: end of input expected at 1:2. Expression: $.."key"

Elixir (jaxon)

[
  "top"
]

Elixir (warpath) ¹

Not supported

Parser error: Invalid token on line 1, syntax error before: <<"key">>

Golang (github.com-PaesslerAG-jsonpath) ¹

Not supported

parsing error: $.."key"	:1:4 - 1:9 unexpected String while scanning JSON mapper expected "[", Ident or "*"

Golang (github.com-bhmj-jsonslice) ¹ ³

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Golang (github.com-ohler55-ojg)

Not supported

Golang (github.com-spyzhov-ajson)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Golang (github.com-vmware-labs-yaml-jsonpath)

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

Haskell (jsonpath)

Not supported

Invalid JSONPath: $.."key"
 Error: 1:4:
  |
1 | $.."key"
  |    ^
unexpected '"'
expecting '.', '[', or white space

JavaScript (Goessner) ²

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

JavaScript (brunerd)

Not supported

JavaScript (jsonpath)

Not supported

Parse error on line 1:
$.."key"
---^
Expecting 'STAR', 'IDENTIFIER', 'SCRIPT_EXPRESSION', 'INTEGER', 'END', '[', got 'QQ_STRING'

JavaScript (jsonpath-plus)

[]

Java (com.github.jsurfer)

Not supported

org.antlr.v4.runtime.misc.ParseCancellationException

Java (com.jayway.jsonpath) ¹ ³

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

Kotlin (com.nfeld.jsonpathkt) ¹

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

Objective-C (SMJJSONPath) ¹ ³

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

PHP (Goessner) ²

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

PHP (galbar-jsonpath) ²

Not supported

Invalid JSONPath error: 'Error in JSONPath near '.."key"''

PHP (remorhaz-jsonpath)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

PHP (softcreatr-jsonpath)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Perl (JSON-Path)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Python (jsonpath) ²

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

Python (jsonpath-ng)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Python (jsonpath-rw)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

Python (jsonpath2)

Not supported

line 1:3 mismatched input '"key"' expecting {'*', '[', ID}
ValueError('line 1:3 mismatched input \'"key"\' expecting {\'*\', \'[\', ID}')

Raku (JSON-Path)

Not supported

JSON path parse error at position 3

Ruby (jsonpath)

Not supported

character '"' not supported in query

Rust (jsonpath)

Not supported

parsing error

Rust (jsonpath_lib)

Not supported

path error: 
$.."key"
^^^^^^^^

Scala (jsonpath)

[
  0,
  100,
  42,
  {
    "\"key\"": 99
  }
]

Swift (Sextant)

[
  0,
  100,
  42,
  99
]

dotNET (Json.NET)

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

dotNET (JsonCons.JsonPath)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

dotNET (JsonPath.Net)

Not supported

Could not identify selector

dotNET (JsonPathLib)

[
  0,
  100,
  42,
  99,
  {
    "\"key\"": 99
  }
]

dotNET (Manatee.Json)

[
  "russian dolls",
  "something",
  "top",
  "value",
  {
    "key": "russian dolls"
  }
]

JSON (Path_Reference_Implementation)

Not supported

 --> 1:3
  |
1 | $.."key"
  |   ^---
  |
  = expected childName

Proposal (A)

Not supported


x 1:4-1:4 BracketChildren
| $.."key"
|    ^
| x 1:4-1:4 DotChildName
| | $.."key"
| |    ^
| | 
|/  
x 1:2-1:2 RecursiveDescentChildren
| $.."key"
|  ^
x 1:2-1:2 Operator
| $.."key"
|  ^
o 1:1-1:2 Start
  $.."key"
  ^

Errors

Elixir (ExJsonPath)

FunctionClauseError

Erlang (ejsonpath)

init terminating in do_boot (function_clause)

Crash dump is being written to: /dev/null...done
{"init terminating in do_boot",function_clause}

Golang (github.com-oliveagle-jsonpath) ¹

expression don't support in filter

Rust (jsonpath_plus)

Error Parsing JSON Path:
$.."key"
panic occurred

Footnotes