-
Notifications
You must be signed in to change notification settings - Fork 626
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
Support I/O stream #204
Comments
We are planning a migration to kotlin multiplatform IO library – https://github.com/Kotlin/kotlinx-io . JSON parser would support both strings and kotlinx.io inputs. |
… become healthy with Docker 19.03.5. Docker 19.03.5 no longer sends new line characters between events, so we can't use that as a reliable way to read the first event from the event stream. So instead, we have to keep reading characters, one at a time, until we get a valid JSON object. Once Kotlin/kotlinx.serialization#204 (or Kotlin/kotlinx.serialization#253) is implemented, we can make this slightly nicer by just directly decoding from a stream. This resolves #393.
This is quite a bummer because I know for a fact that Android can crash when a very large JSON payload is converted to a String at once. When can we expect a streaming parse? Thanks. |
We indeed face this issue when per persist large json (the apps data) which sometimes triggers OutOfMemory. |
We are interested by that one for Spring Framework support, beware that for Spring MVC we typically deal with |
Yes, this should be considered a stopper for all Android applications. |
Any news or roadmap? |
It's planned for 1.1 or 1.2 |
Seems like the feature didn't make into 1.1.0-RC. Currently, it's the only reason why I would not feel confident shipping it in a production app. |
Really sad, I was looking forward to this being supported |
Could you please add support for that in 1.2 in order to allow Spring to use it in Spring Boot 2.5 ? |
+100500 votes! How read big json without buffer, flow or streams? |
I'm developing an application with Others have mentioned resource usage; but I wanted to bring another use-case reason to support streaming. Thanks for considering. |
If |
that (wasn't) true We currently have progress on working implementation over Java's InputStream/OutputStream (#1569 ) You can take a look and tell if that fits your needs. |
Fixed in 1.3.0-RC |
random EOF exceptions on heavy loads. |
@slavonnet Can you please create a separate issue with a reproducer or at least a description of conditions under which exception occurs? |
Is there a separate issue for multiplatform streaming ? |
@martinbonnin I've cerated one for you: #1714 |
If I deserialize a json from file system, deserialize method require me full read the file to a string.
Can it support read and write json content from I/O stream, like Gson done?
The text was updated successfully, but these errors were encountered: