I have an mpp module with `1.3-rc146` and gradle `...
# multiplatform
h
I have an mpp module with
1.3-rc146
and gradle
4.7
. Can I use latest
kotlinx.serialization
with
@Serializable
and
@Optional
in common module and parse json with it in native? @sandwwraith
t
Yes, just supply DataClass.serializer() as first argument to JSON.parse()
h
Do I need to add any extra dependencies besides
org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.8.2-rc13
in common module? Because currently it doesn't compile for ios targets. It can't find the annotations from runtime.
h
Hmm, I've read that doc but somehow missed that part. Thanks.