Skip to content

Doesn't return object when '.' used in the object name #24

@nbu

Description

@nbu

Have object:

var obj = {
  "test1": {
    "test2": {
      "test3.test4.test5": {
        "test7": "value"
      }
    }
  }
}

Doing request:

jsonPath.eval(obj, "test1.test2['test3.test4.test5']")
or
jsonPath.eval(obj, 'test1.test2["test3.test4.test5"]')

in both cases returns:

[]

Expectation is:

{
  "test7": "value"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions