JSONPath-Plus / JSONPath

A fork of JSONPath from http://goessner.net/articles/JsonPath/
Other
958 stars 169 forks source link

When key has dot then json path dont give value #198

Closed ajit-pawar-sp closed 11 months ago

ajit-pawar-sp commented 11 months ago

Describe the bug

When the key has dot in, library is unable to parse.

Code sample or steps to reproduce

let test =  {
    simpleString: "simpleString",
    "@odata.next": "@asPropertyName",
    "a$a": "$inPropertyName",
    "$": {
        "@": "withboth"
    },
    a: {
        b: {
            c: "food"
        }
    }
};

const obj = JSONPath({ path: "`@odata.next", json: test });
// Code that reproduces problem here

Console error or logs

Expected behavior

Expected result

Environment (IMPORTANT)

Desktop**

Additional context