Join Slack
Powered by
This is happening only when I let ktor serialize m...
# ktor
m
melatonina
02/26/2021, 8:39 PM
This is happening only when I let ktor serialize my data. If I invoke
json.encodeToString()
explicitly, the serialization work as expected. I'm using ktor 1.5.1. Why is this happening?
i
Ivan Pavlov
02/26/2021, 8:48 PM
I guess you need to set arrayPolimorphism to false like in this thread
https://kotlinlang.slack.com/archives/C0A974TJ9/p1610914021047000?thread_ts=1610914021.047000&cid=C0A974TJ9
💯 1
☝🏼 1
m
melatonina
02/27/2021, 8:43 AM
Thanks,
@Ivan Pavlov
! You saved me many hours, most likely.
👍 1
Open in Slack
Previous
Next