<How to keep "type" field for the encodeToString m...
# stackoverflow
r
How to keep "type" field for the encodeToString method? I am tryin to send a serialized message from server to a client. I use Ktor: https://ktor.io I use a polymorphic serializers module to decode\encode text messages. From this docs: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/polymorphism.md#registered-subclasses i see that the...