I’m trying to get some basic serialization happeni...
# getting-started
c
I’m trying to get some basic serialization happening… I have
import kotlinx.serialization.*
and
.json.*
, but I’m getting an
Unresolved reference: serialization
error. Do I need to add a dependency to my Gradle file?
I needed to add this to my Gradle build file:
Copy code
plugins {
    kotlin("plugin.serialization") version "1.9.22"
}
And also this dependency:
Copy code
dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.x.x")
}
Where would find the latest version number for
kotlinx-serialization-json
? I’ve seen
1.6.0-RC
mentioned, but is that the latest? (How could I check?)
r
🙏 1
h
I recommend joining #serialization for questions around kotlinx.serialization
👍 1