Skip to content

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.

3 participants