Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

member-child-identifier parse wrong ! #186

Open
sjs14 opened this issue Jan 8, 2024 · 0 comments
Open

member-child-identifier parse wrong ! #186

sjs14 opened this issue Jan 8, 2024 · 0 comments

Comments

@sjs14
Copy link

sjs14 commented Jan 8, 2024

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant