jmespath / jmespath.js

Javascript implementation of JMESPath, a query language for JSON
http://jmespath.org
Other
776 stars 95 forks source link

add support for accented characters #63

Open SDaron opened 4 years ago

SDaron commented 4 years ago

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

springcomp commented 1 year ago

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" }