Skip to content

Trailing newline character in path is not handled #1001

Open
@q2w

Description

@q2w

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions