Is it possible to use kotlin-serialization as open...
# serialization
l
Is it possible to use kotlin-serialization as open-feign client encoder/decoder like JacksonEncoder?
e
should be easy,
Copy code
Decoder { r, t ->
    val serializer = format.serializersModule.serializer(t)
    val body = r.body().asReader(r.charset()).use { it.readText() }
    format.decodeFromString(serializer, body)
}
where
val format = Json { ... }
or whatever
l
Thank you! It would be nice if feign support KotlinEncoder like JacksonEncoder XD
269 Views