Array slice with step only

Setup

Selector: $[::2]

["first", "second", "third", "forth", "fifth"]

Results

Consensus

[
  "first",
  "third",
  "fifth"
]

Other responses

C (json-glib)

[]

Clojure (json-path) ¹

"third"

Elixir (jaxon)

[]

Erlang (ejsonpath)

Not supported

syntax error before: ':'

Java (com.github.jsurfer)

Not supported

org.antlr.v4.runtime.misc.ParseCancellationException

Java (com.jayway.jsonpath) ¹ ³

Not supported

SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
com.jayway.jsonpath.InvalidPathException: Failed to parse SliceOperation: ::2

Kotlin (com.nfeld.jsonpathkt) ¹

[
  "first",
  "second"
]

Objective-C (SMJJSONPath) ¹ ³

Not supported

Failed to parse SliceOperation: ::2

Python (jsonpath-ng)

Not supported

JsonPathParserError('Parse error at 1:3 near token : (:)')

Python (jsonpath-rw)

Not supported

Exception('Parse error at 1:3 near token : (:)')

Raku (JSON-Path)

Not supported

JSON path parse error at position 1

Rust (jsonpath)

Not supported

parsing error

Errors

Golang (github.com-oliveagle-jsonpath) ¹

only support one range(from, to): [  2]

Footnotes