Dot notation with empty path

Setup

Selector: $.

{"key": 42, "": 9001, "''": "nice"}

Results

Consensus

Not supported

Other responses

Bash (JSONPath.sh)

[]

Clojure (json-path) ¹

{
  "": 9001,
  "''": "nice",
  "key": 42
}

Elixir (jaxon)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

Erlang (ejsonpath)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

Golang (github.com-oliveagle-jsonpath) ¹

9001

Golang (github.com-spyzhov-ajson)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

JavaScript (Goessner) ²

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

JavaScript (jsonpath-plus)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

PHP (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

PHP (softcreatr-jsonpath)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

Perl (JSON-Path)

[
  ""
]

Python (jsonpath) ²

Not found

jsonpath returned false, this might indicate an error

Ruby (jsonpath)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

dotNET (JsonPathLib)

[
  {
    "": 9001,
    "''": "nice",
    "key": 42
  }
]

Errors

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

path: unexpected end of path at 2

Rust (jsonpath_plus)

Error Parsing JSON Path:
$.
panic occurred

Footnotes