kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** `@ProtoOneOf` was introduced in the last release, allowing us to define polymorphic classes in a protobuf way. However, it...
I've only seen documentation for `.PROPERTY` and `.CLASS`.
**What is your use-case and why do you need this feature?** We use `SealedClassSerializer` to manually generate `KSerializer`s for `sealed classes`/`sealed interfaces` that are out of our scope and cannot...
I cannot find any sample converting `Map` and `List` to JSON and vice-versa with generics. Planning to migrate from Moshi to KotlinX Serialization as part of adapting KMM. Currently this...
**Describe the bug** Based on https://github.com/JetBrains/intellij-platform-plugin-template, I'm trying to use kotlinx.serialization for a plugin. However, despite multiple attempts with different configurations, I cannot make the plugin to get installed properly:...
Let's suppose I have this class ```kotlin @Serializable class Settings( val uiScale:Float=1f, val theme:String="dark", ) ``` I have serialized this class to a file which the result is ```json {...
**What is your use-case and why do you need this feature?** We are building a platform that implements OCPI (a protocol that is used in the EV industry). Even though...
**What is your use-case and why do you need this feature?** When you use JsonContentPolymorphicSerializer, it's impossible to specify a list of shapes you expect, while it's still useful for...