kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
Lets say I have the following data class - ```kotlin data class Person( val type: String? = "PERSON_TYPE", val id: String? = null, val friends: List? = listOf() ) ```...
It's my understanding that during proto deserialization the fields that don't match any `@SerialId` tags get discarded. It would be useful to allow capturing these fields in a `ByteArray` so...
**Describe the bug** If you refer inside an companion object of a data class using a simple function to a data class inside another data class AND use the wildcard...
Currently, there is no simple way to access the serializer that is generated for a enum class. For first-party code, there is a workaround (that is seemingly undocumented or at...
I looked at the related polymorphic deserialization [documentation](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#content-based-polymorphic-deserialization) & [Class discriminator](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#class-discriminator-for-polymorphism) but now the situation is that I have a class with a property in it that determines the type...
**What is your use-case and why do you need this feature?** I've created a small repo to demonstrate my use case: https://github.com/sugarmanz/mixed-primitive-composite-polymorphism Essentially, I am trying to consume an API...
Hi, I have a project with a lot of simple classes, but they differ a lot and there are like 50 classes in total (but they might be a lot...
**Describe the bug** When trying to deserialize a object that has a long when using the new IR compiler, `kotlinx.serialization` rounds the long instead of keeping it as is. This...
**What is your use-case and why do you need this feature?** I'm receiving a list of items from the server. Some of the items might miss some required fields or...
Right now the serial name of a polymorphic descriptor is of the following form ``` kotlinx\.serialization\.(Polymorphic|Sealed) ``` Where the second capture group (part between angular brackets is the simple name...