I keep getting a `kotlinx.serialization.Serializat...
# ktor
d
I keep getting a
kotlinx.serialization.SerializationException: Serializer for class 'List' is not found.
error when trying to get a response that returns a json list of objects. Is there a serializer I’m missing or do I have to make one?
For reference I’m using ktor in a KMP app
a
Can you share a code snippet?
o
Maybe ContentNegotiation is missing?
Copy code
fun Application.yourModule() {
  install(ContentNegotiation) {
    json()
  }
d
I had everything setup correctly the issue was my kotlinx serialization version was 1.7.0, while I had my kotlin version set to 2.0.20-Beta1
The fix was to set my kotlin serialization version to my kotlin version