Milan Hruban
05/23/2020, 6:14 AMinstall(ContentNegotiation) {
json()
}
on the client side, I use kotlinx-serialization to serialize a sealed class and post it to server but it doesn't work because the kotlinx-serialization produces different format than ktor-server expects. I thought they are supposed to use the same format. What is the way to make them work together?Milan Hruban
05/23/2020, 6:15 AMpost<MyDto> { myDto ->
//stuff
}
to
post {
val myDto = mySerializer.parse<MyDto>(call.receiveText())
//stuff
}
Kirill Prybylsky
05/25/2020, 10:25 AMMilan Hruban
05/25/2020, 10:32 AMKirill Prybylsky
05/25/2020, 10:33 AM