Union with numbers in decreasing order

Setup

Selector: $[4,1]

[1,2,3,4,5]

Results

Consensus

[
  5,
  2
]

Other responses

Bash (JSONPath.sh)

[
  2,
  5
]

Clojure (json-path) ¹

5

Elixir (jaxon)

[]

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

[
  2,
  5
]

Java (com.github.jsurfer)

[
  2,
  5
]

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

Rust (jsonpath)

Not supported

parsing error

Footnotes