JsonCons.Net icon indicating copy to clipboard operation
JsonCons.Net copied to clipboard

fix(JmesPath): Allows key names to be written using the Russian alphabet

Open gmaFFFFF opened this issue 1 year ago • 0 comments

Restrictions

Doesn't fix the issue with the entire Unicode character set supported by Json. Therefore, it needs to be improved in the future.

Description of the problem

Previously it was not possible to execute the following JmesPath — parser threw an error:

книги[?цена>`22`]

For this Json:

{
    "книги":
    [
        {
            "категория": "fiction",
            "название" : "The Comedians",
            "автор" : "Graham Greene",
            "цена" : 21.99
        },
        {
            "категория": "мемуары",
            "название" : "The Night Watch",
            "автор" : "David Atlee Phillips",
            "цена" : 260.90
        }
    ]
}

And get result:

[
    {
        "автор": "David Atlee Phillips",
        "категория": "мемуары",
        "название": "The Night Watch",
        "цена": 260.9
    }
]

gmaFFFFF avatar Jan 27 '24 13:01 gmaFFFFF