Hi, in my shared module for Android and ios app I'...
# multiplatform
m
Hi, in my shared module for Android and ios app I'm trying to implement a method which would request a ton of data at once but i need to parse it sequentially as a stream. Is there a way how to do it using kotlinx-serialisation? I have an implementaiton using Gson, which responds with the partially parsed batches of data in callbacks, but that can't be used in KMP as Gson is not supported on ios. I can't deserialize it normally using kotlinx-serialisation, because it fails with OOM when it tries to have everything in memory at once. The response is in json format, it has few lists and each list is very long collection of small data objects of type relevant to each list. I would love to emit each data object individually or in some smaller batches. Can you please recommend me the best approach? šŸ™ So far it seems I need to implement a parser from scratch, but I would be glad if I just missed something.