kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

Kotlin multiplatform / multi-format serialization

Results 460 kotlinx.serialization issues
Sort by recently updated
recently updated
newest added

**Describe the bug** When kotlin-serialisation is declared in script plugin, and then `apply from` to project build.gradle. The compiler plugin does not get applied, even though the build is successful...

**What is your use-case and why do you need this feature?** I'm trying to build a custom `KSerializer` for a class that has a list property: ```kotlin @Serializable(with = ListingSerializer::class)...

docs needed

**Description** I encountered a confusing exception when writing JsonElement-related tests. I don't know how likely someone would be to stumble across this in the wild. While it isn't a bug...

json
runtime

**What is your use-case and why do you need this feature?** Default class discriminator value right now is full class name. This value is stored in serialized json. Class name...

feature

**What is your use-case and why do you need this feature?** I want to use this library to communicate with an API that uses CBOR for payloads. This API is...

feature
up for grabs

I would be great if we had an option to set serializer for a class during Json initialization or in serializers module. Something like this: ``` Json { useSerializer(SomeClass::class, CustomSerializer)...

question

**Describe the bug** Hey all, I have been stuck on this for hours. Apparently whenever I try to serialise a polymorphic type inside of a MutableList it fails with ```...

**Issue**: On iOS, attempting to concurrently deserialize multiple gateway responses on a background queue throws the following runtime exception and crashes the. ``` Crashed: com.apple.NSURLSession-delegate 0 MopEngine 0xca834 kfun:kotlinx.serialization.json.internal.StreamingJsonDecoder#(kotlinx.serialization.json.Json;kotlinx.serialization.json.internal.WriteMode;kotlinx.serialization.json.internal.AbstractJsonLexer;kotlinx.serialization.descriptors.SerialDescriptor){} +...

A very common case of serialization is when API/JSON naming policy conflicts with your code naming, for example, snake case quite popular naming style for JSON fields, but for Kotlin...

feature

**Describe the bug** I'm trying to upgrade a project from Kotlin 1.6.10 and serialization 1.3.2 to Kotlin 1.6.21 and serialization 1.3.3. [Compilation fails when trying to upgrade](https://github.com/imotions/carp.core-kotlin/pull/387). **To Reproduce** You...

bug
compiler-plugin