Filter expression with equals string in NFC

Setup

Selector: $[?(@.key=="Motörhead")]

[
  {"key": "something"},
  {"key": "Mot\u00f6rhead"},
  {"key": "mot\u00f6rhead"},
  {"key": "Motorhead"},
  {"key": "Motoo\u0308rhead"},
  {"key": "motoo\u0308rhead"}
]

Results

Consensus

[
  {
    "key": "Mot\u00f6rhead"
  }
]

Other responses

Bash (JSONPath.sh)

[]

C (json-glib)

Not supported

Unable to compile selector `$[?(@.key=="Motörhead")]': Invalid array index definition “?(@.key=="Motörhead")]”

Clojure (json-path) ¹

[]

Elixir (ExJsonPath)

[]

Elixir (jaxon)

[]

Erlang (ejsonpath)

[]

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

[]

Golang (github.com-oliveagle-jsonpath) ¹

[]

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 extraneous input '=' expecting {'@', '$', 'true', 'false', 'null', '{', '[', STRING, NUMBER}
ValueError("line 1:10 extraneous input '=' expecting {'@', '$', 'true', 'false', 'null', '{', '[', STRING, NUMBER}")

Raku (JSON-Path)

Not supported

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

Rust (jsonpath)

Not supported

parsing error

dotNET (Json.NET)

Not supported

Unexpected character while parsing path query: "

Errors

PHP (Goessner) ²

ArgumentCountError

Perl (JSON-Path)

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

Footnotes