Dot bracket notation without quotes

Setup

Selector: $.[key]

{
  "key": "value",
  "other": {"key": [{"key": 42}]}
}

Results

Consensus

Not supported

Other responses

Bash (JSONPath.sh)

[
  "value"
]

Elixir (jaxon)

[
  "value"
]

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

"value"

Golang (github.com-spyzhov-ajson)

[
  "value"
]

JavaScript (Goessner) ²

[
  "value",
  [
    {
      "key": 42
    }
  ],
  42
]

JavaScript (jsonpath-plus)

[
  "value",
  [
    {
      "key": 42
    }
  ],
  42
]

PHP (Goessner) ²

[
  "value",
  [
    {
      "key": 42
    }
  ],
  42
]

PHP (remorhaz-jsonpath)

[
  "value"
]

PHP (softcreatr-jsonpath)

[
  "value"
]

Perl (JSON-Path)

[
  "value"
]

Python (jsonpath) ²

[
  "value",
  [
    {
      "key": 42
    }
  ],
  42
]

Python (jsonpath-ng)

[
  "value"
]

Python (jsonpath-rw)

[
  "value"
]

dotNET (JsonPathLib)

[
  "value",
  [
    {
      "key": 42
    }
  ],
  42
]

Errors

Clojure (json-path) ¹

java.lang.Exception object must be an array.

Golang (github.com-oliveagle-jsonpath) ¹

strconv.Atoi: parsing "key": invalid syntax

Ruby (jsonpath)

invalid value for Integer(): "key"

Rust (jsonpath_plus)

Error Parsing JSON Path:
$.[key]
panic occurred

Footnotes