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

Parsing not pre-separated jsons #14

Open
vorner opened this issue Sep 6, 2018 · 0 comments
Open

Parsing not pre-separated jsons #14

vorner opened this issue Sep 6, 2018 · 0 comments

Comments

@vorner
Copy link

vorner commented Sep 6, 2018

Hello

It is possible to have a „stream“ of jsons, not really separated by newlines or prefix-length-encoded or something, like this:

{"a":42}{"b":81}

I actually have the code around at the tokio-jsonrpc crate (https://docs.rs/tokio-jsonrpc/0.9.1/src/tokio_jsonrpc/codec.rs.html#166-183) ‒ it's likely outdated a bit after some changes around tokio, but should be possible to adapt.

Would it make sense to move the code (or the whole module) into this crate?

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

No branches or pull requests

1 participant