How to parse a BIG JSON with kotlinx.serialization in Compose Multiplatform
09:14 09 Jun 2025

I have found such kinds of error while calling Web Apis when json response is too large.

Throwing OutOfMemoryError "Failed to allocate a 104643040 byte allocation with 25165824 free bytes and 51MB until OOM, target footprint 172504768, growth limit 201326592" (VmSize 14010196 kB)

Please provide the solution as i am new in compose multiplatform

out-of-memory kotlin-multiplatform ktor compose-multiplatform kotlinx.serialization