Skip to content
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

Add full json reader consumption to Array Streamer #15

Closed
LachlanMcKee opened this issue May 1, 2016 · 0 comments
Closed

Add full json reader consumption to Array Streamer #15

LachlanMcKee opened this issue May 1, 2016 · 0 comments
Milestone

Comments

@LachlanMcKee
Copy link
Owner

At the moment the Array Streamer functionality exits from the json reader as soon as it finds the result it looking for.

Unfortunately this will cause the json reader to be in an unknown state where it has not finished reading the entire json tree correctly.

There are some benefits to not reading the json tree, but by default it should read the entire tree to ensure that compatibility is maintained with other Gson functionality.

An annotation field should be exposed which allows a developer to disable reading the entire tree. This would normally be done where the array is the only element being consumed and the reader can be discarded immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant