Moshi is a Java library, it’s not possible to use it in shared code. KMM does not work by running JVM bytecode on other platforms, it cross-compiles Kotlin source code to those other targets. So KMM-enabled libraries need to be written fully in Kotlin.
Have you looked at kotlinx.serialization instead? This one is developed by Jetbrains and works on all KMM targets
n
Ninoosvanidze
12/16/2022, 9:42 AM
yeap, I'm using this one, but the structure of json itself is in banana json style, its bit complicated structure 😄