-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
JsonParserSequence skips a token on a switched Parser. #296
Comments
Implemented, added simple test; would be great if you could verify that it works for you before 2.8.0 is released. |
Hmmh. Actually, trying to change the behavior breaks a few tests in |
The constructor and Thanks. |
New functionality is now in 2.8.0 -- thank you for working through this, let me know if I mangled something. |
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.
The text was updated successfully, but these errors were encountered: