Union with duplication from array

Setup

Selector: $[0,0]

["a"]

Results

Consensus

[
  "a",
  "a"
]

Other responses

Bash (JSONPath.sh)

[
  "a"
]

Clojure (json-path) ¹

"a"

Elixir (jaxon)

[]

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

[
  "a"
]

JavaScript (jsonpath)

[
  "a"
]

Java (com.github.jsurfer)

[
  "a"
]

PHP (remorhaz-jsonpath)

[
  "a"
]

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

dotNET (Manatee.Json)

[
  "a"
]

Footnotes