Skip to content

Allow "any kind of letter from any language" instead of [a-zA-Z] in jsonata expressions.  #200

Description

@trzye

Hi,

First of all I would love to say that I'm big fan of this library and I'm using it's extensively, thank you for all the hard work put into JSONata4Java! :)

Today I was trying to migrate our old jsonata processes from nodejs implementation to yours, and I have found that some of our expressions aren't working because they're using special polish diacritics like [żółćśęą] for example:

json:
{ "żółw": { "Tytuł": "Pan Tadeusz" } }

with expression:
{ "Title": żółw.Tytuł }

will throw

com.api.jsonata4java.expressions.ParseException with message token recognition error at: 'Ż'

When using try.jsonata this expression is perfectly fine:

https://try.jsonata.org/kNopHVcxh

and will return

{
  "Title": "Pan Tadeusz"
}

I've actually prepared the patch and tests for this case. Link in the next comment :)

I hope that you can review this and include in some release.

Thanks in advance,

Michał Jereczek

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions