<Ktor: Serialize/Deserialize JSON with List as roo...
# stackoverflow
u
Ktor: Serialize/Deserialize JSON with List as root in Multiplatform How can we use kotlin.serialize with Ktor's HttpClient to deserialize/serialize JSON with lists as root? I am creating the HttpClient as follows: HttpClient { install(JsonFeature) { serializer = KotlinxSerializer().apply { setMapper(MyClass::class, MyClass.serializer()) setMapper(AnotherClass::class, AnotherClass.serializer()) } } install(ExpectSuccess) } Appears I need to setMapper for List, however that is not...