kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
Currently, `kotlinx.serialization` requires two components to function -- applied serialization plugin and the runtime JAR added to dependencies. For newcomers, steepness of the general learning curve and build configuration, two-step...
and last instances of @Suppress(INVISIBLE_REFERENCE) in production code.
**What is your use-case and why do you need this feature?** [Delegating serializers](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#delegating-serializers) are common feature, but it's quite boilerplatish to use. Maybe we can implement some API, which would...
I’m using kotlinx.serialization on Kotlin/JS. I wrote some code that did something like this: ``` val value = 1L val jsonElement = Json.encodeToJsonElement(value) val dynamic = Json.encodeToDynamic(jsonElement) ``` (In my...
Current doc:
**What is your use-case and why do you need this feature?** I support a format where `Nothing` in its schema is meaningful, e.g. `List` is encoded differently than an empty...
**Describe the bug** When deserializing, Transit field of parent class use its default value instead of the value from subclass constructor **To Reproduce** ``` @Serializable sealed class Parent( @Transient val...
**What is your use-case and why do you need this feature?** Current `dev` branch supports everything required to get COSE/CWT working, but still requires manual sorting of keys (i.e. declaring...
**Describe the bug** According to the RFC, CBOR Web Tokens use a map with integer keys: https://datatracker.ietf.org/doc/html/rfc8392 Currently, there is no way to parse such data. Ideally, `@SerialName` would support...