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

A readable example for StreamDeserializer? #1070

Open
jaskij opened this issue Sep 8, 2023 · 2 comments
Open

A readable example for StreamDeserializer? #1070

jaskij opened this issue Sep 8, 2023 · 2 comments

Comments

@jaskij
Copy link

jaskij commented Sep 8, 2023

Looking at the current documentation for serde_json::Deserializer, I simply can not figure out what the correct format is for a stream. Is it simply a concatenation of JSON objects?

@vidhanio
Copy link

vidhanio commented Sep 8, 2023

It seems to be written as "Values need to be a self-delineating value e.g. arrays, objects, or strings, or be followed by whitespace or a self-delineating value." It just needs to be 0+ whitespace-seperated json values.

@jaskij
Copy link
Author

jaskij commented Sep 9, 2023

Yeah, I figured that out, but the documentation was of no help in that.

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

No branches or pull requests

2 participants