kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
I am trying to define an external serializer for a data class (Data) which is defined in another gradle module (subproject) and the result is the following exception. ``` Caused...
### Describe the bug The default serializer of a serializable class can be overwritten by annotating the property that should be serialized with `SomeOtherSerializer` with `@Serializable(with = SomeOtherSerializer::class)`. Since the...
Attempt to somehow address #2003
Trying to use the value class `Duration` with kotlin 1.5 and serialization 1.2 states ``` kotlinx.serialization.SerializationException: Serializer for class 'Duration' is not found. Mark the class as @Serializable or provide...
**What is your use-case and why do you need this feature?** Right now there is no way to serialize kotlin delegates and even if there is , its not easy...
**What is your use-case and why do you need this feature?** I have several classes that I want to deserialize, that include lists of polymorphic types. I can get it...
Relates #1918 Benchmarks for improved serialization plugin Test | Old, ops/ms | ±, ops/ms | | New, ops/ms | ±, ops/ms | | Boost -- | -- | -- |...
To the point: I need to take a JSON input like `{ "number": { "innerNumber": 4 } }`, and parse it into a top-level `number` property (like the input were...
I have the following hierarchy: ``` @Serializable sealed class Search(@SerialName("type") private var searchType: SearchType, @Transient open val table: String = "", @Transient open val index: String? = null, @Transient open...
**Describe the bug** I am trying to use kotlin serizlization in my android application, but as soon as I mark my data class with @Serializable the project stops compiling with...