JSON Content Polymorphic Serialization with Kotlinx
Did you ever receive JSON containing a list of objects that share some properties, but certain selected properties were distinct? Maybe you thought that these "subtypes" could probably de-serialize into subclasses, but you lack the 'type' property to distinguish on. Don't fret. With Kotlinx.serialization, you can still achieve polymorphism.