Skip to content

JsonParserSequence skips a token on a switched Parser. #296

@newkek

Description

@newkek

Having 2 parsers concatenated with JsonParserSequence.createFlattened(parser1, parser2).

If the second parser is on a token that is not null and should not be skipped, the JsonParserSequence will still skip it. JsonParserSequence's nextToken() calls nextToken() on the new delegate which may cause that we miss a token.

For more details : forum question

I'll open a PR for this.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions