Skip to content

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

@ajit-pawar-sp

Description

@ajit-pawar-sp

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)

  • JSONPath-Plus version: 7.2.0

Desktop**

  • OS: [e.g. Windows]
  • Browser and version [e.g. chrome 65] or Node Version [e.g. 10.2]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions