-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Issue75stopwhendone #83
Conversation
Compared to the discussion in #75, it's a simple but effective approach. Generally, I liked the idea of making this the default behaviour, except for the insitu parsing. It seems that it is now possible to read multiple objects without an explicit
I don't understand this concern. Yes, it is (kind of) an JSON-related function, but it should work also outside of the |
Actually insitu parsing should be fine with
Yes. This is safe for continue parsing with the same stream.
If the stream contains things other than JSON, I think should not suggest user to use |
Indeed, the user should explictily consume whitespace, if necessary in the application. My suggestion has been to fluently return the stream itself from this function for convenience, e.g. reusing the stream in another context again. |
Currently, there is no way to obtain the "end" of the first JSON object after the insitu parsing, at least for the Do you still intend to make this the default behaviour? (i.e. rename it to |
Insitu parsing can be done with For string stream, user also need to call I am considering setting |
Fix #75
SkipWhitespace()
was not modified as @pah suggest, yet.Actually user may not use this after the stream has parsed a JSON,
SkipWhitespace()
is only defined for JSON.Would ask @pah for review.