kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
It is possible that I could have missed this in documentation, but nevertheless: I want to write a custom parser for an object, but i want it to be parsed...
**What is your use-case and why do you need this feature?** I want to jsonify an object which contains generic types, so I tried following codes at first. ```kotlin @Serializable...
Follow up of https://youtrack.jetbrains.com/issue/QA-1118/ * [ ] Update to Gradle 8 * [ ] Migrate from Groovy to Kotlin DSL everywhere * [ ] Tidy up Kover config and make...
**Describe the bug** When I bump version of kotlinx-serialization-json to 1.6.3, IOException is occurred. I'll write detail log below. ``` java.lang.RuntimeException: java.io.IOException: Can't write to record[17983438]: it was deleted at...
**What is your use-case and why do you need this feature?** Parcelize allows the following code. ```kotlin @Parcelize sealed interface State : Parcelable { data object Loading : State data...
It is an implementation of #2538 , to support `oneof` declaraction in protobuf. Some major changes: 1. Introduce a new annotation `ProtoOneOf` to mark a property of class should be...
**What is your use-case and why do you need this feature?** The Kotlin compiler can infer some type arguments of a subtype from those of the parent abstract/sealed types. Currently,...
**Describe the bug** `coerceInputValues` does not work for `Double` type when value is `NaN`. **To Reproduce** ```kotlin @Serializable data class MyData( val doubleField: Double = .0 ) ... val json...
Some backends return polymorphic data without a descriptor: ```json { "value": "someValue" } ``` vs ```json { "value": { "version": 0, "content": "someValue" } } ``` I know this is...
This is effectively accomplished by propagating the value of `decodeByteArrayAsByteString`, as determined by reading the annotations on the element, down to any `CborReader`s for map- or list-like types. Any `ByteArray`...