Skip to content

Advance reader when not expected JSON token #3833

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

Merged
merged 1 commit into from
Jun 21, 2019
Merged

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Jun 20, 2019

This commit advances the JSON reader when a JSON token is one that is unexpected e.g. when the JSON token is null.

This commit advances the JSON reader when a JSON token is one that is unexpected e.g. when the JSON token is null.
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I wonder how we can prevent forgetting this in the future.

An extension method that does return reader.AdvanceNext() and return reader.AdvanceBlock() perhaps?

Does this supersede https://github.com/elastic/elasticsearch-net/pull/3815/files ?

@russcam
Copy link
Contributor Author

russcam commented Jun 21, 2019

There's some overlap with #3815, although there may be one or two things in that PR that are not in this one

@russcam russcam merged commit be9463d into 7.x Jun 21, 2019
@russcam russcam deleted the fix/advance-reader branch July 2, 2019 00:51
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

Successfully merging this pull request may close these issues.

2 participants