hey ppl, is there any way to use <moshi json api> ...
# multiplatform
n
hey ppl, is there any way to use moshi json api in kmm shared code?
🚫 5
👀 1
did anyone tried it ?
c
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
yeap, I'm using this one, but the structure of json itself is in banana json style, its bit complicated structure 😄
l
@Ninoosvanidze I think you can try to use this https://kotlinlang.slack.com/archives/C3PQML5NU/p1671621798683169
🙌 1