Bracket notation with quoted number on object

Setup

Selector: $['0']

{
    "0": "value"
}

Results

Consensus

[
  "value"
]

Scalar consensus

The scalar consensus applies for implementations which return a single value where only one match is possible (instead of an array of a single value).

"value"

Other responses

Bash (JSONPath.sh)

[]

Elixir (jaxon)

[]

Python (jsonpath2)

Not supported

line 1:2 token recognition error at: '''
ValueError("line 1:2 token recognition error at: '''")

Rust (jsonpath)

Not supported

parsing error

Errors

Clojure (json-path) ¹

java.lang.Exception object must be an array.

Golang (github.com-oliveagle-jsonpath) ¹

strconv.Atoi: parsing "'0'": invalid syntax

Footnotes