Array slice with range of 0

Setup

Selector: $[0:0]

[
  "first",
  "second"
]

Results

Consensus

[]

Not found consensus

This consensus applies for implementations which return a specific not found value if no match exists.

NOT_FOUND

Other responses

Bash (JSONPath.sh)

[
  "first",
  "second"
]

Clojure (json-path) ¹

"first"

Elixir (ExJsonPath)

[
  "first",
  "second"
]

Golang (github.com-oliveagle-jsonpath) ¹

[
  "first"
]

JavaScript (jsonpath-plus)

[
  "first",
  "second"
]

PHP (Goessner) ²

[
  "first",
  "second"
]

Raku (JSON-Path)

[
  "first"
]

Ruby (jsonpath)

[
  "first"
]

Rust (jsonpath)

[
  "first"
]

Footnotes