Array slice with large number for end and negative step

Setup

Selector: $[2:-113667776004:-1]

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

Results

Other responses

Bash (JSONPath.sh)

[]

C (json-glib)

[]

Clojure (json-path) ¹

"third"

Cpp (jsoncons)

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

Dart (json_path)

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

Elixir (jaxon)

[]

Elixir (warpath) ¹

Not supported

Parser error: Invalid token on line 1, slice step should be greater than zero.

Erlang (ejsonpath)

Not supported

syntax error before: '-'

Golang (github.com-PaesslerAG-jsonpath) ¹

[]

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

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

Golang (github.com-ohler55-ojg)

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

Golang (github.com-spyzhov-ajson)

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

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

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

Haskell (jsonpath)

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

JavaScript (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

JavaScript (brunerd)

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

JavaScript (jsonpath)

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

JavaScript (jsonpath-plus)

[]

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: java.lang.NumberFormatException: For input string: "-113667776004"

Kotlin (com.nfeld.jsonpathkt) ¹

Not supported

For input string: "-113667776004"

Objective-C (SMJJSONPath) ¹ ³

[]

PHP (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

PHP (galbar-jsonpath) ²

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

PHP (remorhaz-jsonpath)

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

PHP (softcreatr-jsonpath)

[]

Perl (JSON-Path)

[]

Python (jsonpath) ²

[
  "third",
  "second"
]

Python (jsonpath-ng)

Not supported

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

Python (jsonpath-rw)

Not supported

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

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: 
$[2:-113667776004:-1]
^^^^^^^^^^^^^^^^^^

Rust (jsonpath_plus)

[]

Swift (Sextant)

[]

dotNET (JsonCons.JsonPath)

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

dotNET (JsonPath.Net)

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

dotNET (JsonPathLib)

[]

dotNET (Manatee.Json)

Not supported

Expected number. Path up to error: '$'

JSON (Path_Reference_Implementation)

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

Proposal (A)

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

Errors

Elixir (ExJsonPath)

FunctionClauseError

Golang (github.com-oliveagle-jsonpath) ¹

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

Python (jsonpath2)

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

Ruby (jsonpath)

step can't be negative

Scala (jsonpath)

java.lang.NumberFormatException: For input string: "-113667776004"

dotNET (Json.NET)

Value was either too large or too small for an Int32.

Footnotes