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: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder 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