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

Trailing newline character in path is not handled #1001

Open
q2w opened this issue Mar 19, 2024 · 0 comments
Open

Trailing newline character in path is not handled #1001

q2w opened this issue Mar 19, 2024 · 0 comments

Comments

@q2w
Copy link

q2w commented Mar 19, 2024

Trailing newline character is not handled effectively while parsing a JsonPath. Consider below example,

jsonDocument:

{
  "level_0": {
    "level_1": {
      "level_2": "At level 2"
    }
  }
}

jsonPath: $.level_0.level_1.level_2\n

JsonPath.read(jsonDocument, jsonPath) would evaluate to null

This was handled earlier and was removed in this code change.

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