JakeWharton/retrofit2-kotlinx-serialization-converter

FromString converter question?

gajicm93 opened this issue · 1 comments

Why does JSON by default use FromString converter and parses whole response body as a String, instead streaming bytes?

I know this can crash some devices when the payload is too large, and there are limitations about how long a String object can be, and it's also less optimized from network perspective instead of streaming response? Also I know Gson converter doesn't do this.. So why, and are there any plans to change this?

Thanks.

The serialization library does not support streaming.

Kotlin/kotlinx.serialization#204