Array slice with negative step and start greater than end

Setup

Selector: $[0:3:-2]

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

Results

Other responses

Bash (JSONPath.sh)

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

Clojure (json-path) ¹

"first"

Cpp (jsoncons)

[]

Dart (json_path)

[]

Elixir (jaxon)

[]

Elixir (warpath) ¹

[]

Erlang (ejsonpath)

Not supported

syntax error before: '-'

Golang (github.com-PaesslerAG-jsonpath) ¹

[
  "third",
  "first"
]

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

[]

Golang (github.com-ohler55-ojg)

[]

Golang (github.com-spyzhov-ajson)

[]

Golang (github.com-vmware-labs-yaml-jsonpath)

[]

Haskell (jsonpath)

[]

JavaScript (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

JavaScript (brunerd)

[]

JavaScript (jsonpath)

[]

JavaScript (jsonpath-plus)

[]

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"
]

PHP (galbar-jsonpath)

[]

PHP (remorhaz-jsonpath)

[]

Perl (JSON-Path)

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

Python (jsonpath) ²

Not found

jsonpath returned false, this might indicate an error

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 : (:)')

Python (jsonpath2)

[]

Raku (JSON-Path)

Not supported

JSON path parse error at position 1

Rust (jsonpath)

Not supported

parsing error

Rust (jsonpath_lib)

Not supported

path error: 
$[0:3:-2]
^^^^^^

Rust (jsonpath_plus)

[
  "third",
  "first"
]

Scala (jsonpath)

[]

Swift (Sextant)

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

dotNET (Json.NET)

[]

dotNET (JsonCons.JsonPath)

[]

dotNET (JsonPath.Net)

[]

dotNET (JsonPathLib)

[]

dotNET (Manatee.Json)

[]

JSON (Path_Reference_Implementation)

[]

Proposal (A)

[]

Errors

C (json-glib)

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

Elixir (ExJsonPath)

FunctionClauseError

Golang (github.com-oliveagle-jsonpath) ¹

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

PHP (Goessner) ²

timeout: sending signal TERM to command ‘implementations/PHP_Goessner/run.sh’

PHP (softcreatr-jsonpath)

timeout: sending signal TERM to command ‘php’

Ruby (jsonpath)

step can't be negative

Footnotes