jmespath.js icon indicating copy to clipboard operation
jmespath.js copied to clipboard

add support for accented characters

Open SDaron opened this issue 5 years ago • 1 comments

This small update add support for accented characters. Accented characters are allowed in JSON keys and I need them!

SDaron avatar Apr 03 '20 05:04 SDaron

The isAlphaNum() function is specifically used to tokenize unquoted-string. This PR would actually change the grammar and should be rejected.

@SDaron if you want to query JSON properties with accented characters, you should use quoted-string identifiers instead in your JMESPath expression. Something like:

search( "Àn Ïdentıfier", { "Àn Ïdentıfier": "with accented-characters" }

springcomp avatar Nov 24 '22 07:11 springcomp