Filter expression with set wise comparison to scalar

Setup

Selector: $[?(@[*]>=4)]

[[1,2],[3,4],[5,6]]

Results

Other responses

Bash (JSONPath.sh)

[]

C (json-glib)

Not supported

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

Clojure (json-path) ¹

[]

Cpp (jsoncons)

[]

Dart (json_path)

Not supported

Instance of 'ParserException': end of input expected (at 1:2)

Elixir (ExJsonPath)

Not supported

syntax error before: '*'

Elixir (jaxon)

[]

Elixir (warpath) ¹

Not supported

Parser error: Invalid token on line 1, syntax error before: <<"*">>

Golang (github.com-PaesslerAG-jsonpath) ¹

Not supported

parsing error: $[?(@[*]>=4)]	 - 1:11 unknown operator >=

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

[]

Golang (github.com-ohler55-ojg)

[
  [
    3,
    4
  ],
  [
    5,
    6
  ]
]

Golang (github.com-spyzhov-ajson)

[]

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

[
  [
    5,
    6
  ]
]

Haskell (jsonpath)

Not supported

Invalid JSONPath: $[?(@[*]>=4)]
 Error: 1:7:
  |
1 | $[?(@[*]>=4)]
  |       ^
unexpected '*'
expecting '!', '"', ''', '+', '-', integer, or white space

JavaScript (brunerd)

Not supported

JavaScript (jsonpathly)

[]

Java (com.github.jsurfer)

Not supported

line 1:9 token recognition error at: '=4'
org.antlr.v4.runtime.misc.ParseCancellationException

Java (com.jayway.jsonpath) ¹ ³

[]

Kotlin (com.nfeld.jsonpathkt) ¹

Not supported

Unexpected char, char=?, index=2

Objective-C (SMJJSONPath) ¹ ³

[]

PHP (galbar-jsonpath)

[
  [
    5,
    6
  ]
]

PHP (remorhaz-jsonpath)

[]

PHP (softcreatr-jsonpath)

[]

Python (jsonpath) ²

Not found

jsonpath returned false, this might indicate an error

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)

[]

Python (python-jsonpath)

[]

Raku (JSON-Path)

Not supported

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

Ruby (jsonpath)

[
  [
    1,
    2
  ],
  [
    3,
    4
  ],
  [
    5,
    6
  ]
]

Rust (jsonpath)

Not supported

parsing error

Rust (jsonpath_plus)

[]

Rust (serde_json_path)

Not supported

at position 3, in long-hand segment, parser error

Scala (jsonpath)

[
  [
    5,
    6
  ]
]

Swift (Sextant)

[
  [
    1,
    2
  ],
  [
    3,
    4
  ],
  [
    5,
    6
  ]
]

dotNET (Json.NET)

[
  [
    3,
    4
  ],
  [
    5,
    6
  ]
]

dotNET (JsonCons.JsonPath)

[]

dotNET (JsonPath.Net)

Not supported

Pattern '(@[*]>=4)]' not recognized.

dotNET (Manatee.Json)

Not supported

JSON Path expression indexers only support single constant values. Path up to error: '$'

Errors

Erlang (ejsonpath)

Timeout

Golang (github.com-oliveagle-jsonpath) ¹

interface conversion: interface {} is nil, not string

JavaScript (Goessner) ²

jsonPath: Unexpected token *: _v[*]>=4

JavaScript (jsonpath)

Line 1: Unexpected token *

JavaScript (jsonpath-plus)

Unexpected token '*'

PHP (Goessner) ²

ArgumentCountError

Perl (JSON-Path)

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

Rust (jsonpath_lib)

panic occurred

dotNET (JsonPathLib)

Line 1: Unexpected token *

Footnotes