Filter expression with bracket notation with number

Setup

Selector: $[?(@[1]=='b')]

[["a", "b"], ["x", "y"]]

Results

Consensus

[
  [
    "a",
    "b"
  ]
]

Other responses

Bash (JSONPath.sh)

[]

C (json-glib)

Not supported

Unable to compile selector `$[?(@[1]=='b')]': Invalid array index definition “?(@[1]=='b')]”

Clojure (json-path) ¹

[
  null,
  null
]

Elixir (jaxon)

[]

Kotlin (com.nfeld.jsonpathkt) ¹

Not supported

Unexpected char, char=?, index=2

Python (jsonpath-ng)

Not supported

JsonPathLexerError('Error on line 1, col 2: Unexpected character: ? ')

Python (jsonpath-rw)

Not supported

JsonPathLexerError('Error on line 1, col 2: Unexpected character: ? ')

Python (jsonpath2)

Not supported

line 1:10 token recognition error at: '''
ValueError("line 1:10 token recognition error at: '''")

Raku (JSON-Path)

Not supported

Evaluation of embedded Perl 6 code not allowed (construct with :allow-eval)

Rust (jsonpath)

[]

Rust (jsonpath_lib)

[]

dotNET (JsonPathLib)

[]

JSON (Path_Reference_Implementation)

Not supported

 --> 1:3
  |
1 | $[?(@[1]=='b')]
  |   ^---
  |
  = expected unionChild, unionArrayIndex, or sliceStart

Errors

Golang (github.com-oliveagle-jsonpath) ¹

interface conversion: interface {} is nil, not string

PHP (Goessner) ²

ArgumentCountError

Perl (JSON-Path)

non-safe evaluation, died at main.pl line 11.

Footnotes