Array slice with step

Setup

Selector: $[0:3:2]

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

Results

Consensus

[
  "first",
  "third"
]

Other responses

Clojure (json-path) ¹

"first"

Elixir (jaxon)

[]

Java (com.github.jsurfer)

Not supported

org.antlr.v4.runtime.misc.ParseCancellationException

Java (com.jayway.jsonpath) ¹ ³

[
  "first",
  "second",
  "third"
]

Kotlin (com.nfeld.jsonpathkt) ¹

[
  "first",
  "second",
  "third"
]

Objective-C (SMJJSONPath) ¹ ³

[
  "first",
  "second",
  "third"
]

Python (jsonpath-ng)

Not supported

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

Python (jsonpath-rw)

Not supported

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

Raku (JSON-Path)

Not supported

JSON path parse error at position 1

Rust (jsonpath)

Not supported

parsing error

Errors

C (json-glib)

timeout: sending signal TERM to command ‘build/main’

Golang (github.com-oliveagle-jsonpath) ¹

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

Footnotes