Skip to content

member-child-identifier parse wrong ! #186

@sjs14

Description

@sjs14
const str = jp.stringify(['$', 'path', '$.path01.path02["/api/keywords"].response'])
jp.nodes(json, str)

expression.value is wrong !

Parsing the results of jsonpath:

{
  "expression": {
    "type": "string_literal",
    "value": "$.path01.path02[\\\"/api/keywords\\\"].response"
  },
  "scope": "child",
  "operation": "subscript"
}

expect:

{
  "expression": {
    "type": "string_literal",
    "value": "$.path01.path02[\"/api/keywords\"].response"  
  },
  "scope": "child",
  "operation": "subscript"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions