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 trying to integrate kotlinx.serialization, unable to compile. ``` e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation File being compiled: /home/malachid/work/poc/src/main/kotlin/TestData.kt The root cause java.lang.RuntimeException was...

compose

When serializing a polymorphic collation of primitives using the `PolymorphicSerializer` the type is always included. Including the type of the primitives might not be necessary. I feel like this is...

question
design

I offer to include `@Flat` (or `@Flatten`, for example) annotation which will be used in cases when value object of field must be included directly into parent object. ```Kotlin @Serializable...

feature
design

Are there any libraries, community or otherwise, that add serializers for common JDK types like Date, Instant, PublicKey, URI, URL etc? It feels like one should exist by now but...

feature

I have a class that looks like this ```kotlin @file:UseSerializers(BigDecimalSerializer::class, LocalDateSerializer::class) @Serializable data class MyRecordKeeper(val records: Map) ``` with ```kotlin // FIXME // compiler gives error when this class is...

bug

**Describe the bug** When using a generic custom serializer (see example below), adding the `kotlin-kapt` plugin with something that uses `kapt` (like data binding or Dagger) causes a Kotlin compiler...

bug
compiler-plugin
Priority: 1

**What is your use-case and why do you need this feature?** I have a Spring Boot REST API and I want to control what error codes are returned if there's...

feature

``` java.lang.reflect.InvocationTargetException at kotlinx.serialization.internal.PlatformKt.invokeSerializerOnCompanion(Platform.kt:106) at kotlinx.serialization.internal.PlatformKt.constructSerializerForGivenTypeArgs(Platform.kt:41) at kotlinx.serialization.internal.PlatformKt.compiledSerializerImpl(Platform.kt:23) at kotlinx.serialization.SerializersKt__SerializersKt.serializerOrNull(Serializers.kt:178) at kotlinx.serialization.SerializersKt.serializerOrNull(Unknown Source) at kotlinx.serialization.SerializersKt__SerializersKt.serializerByKTypeImpl$SerializersKt__SerializersKt(Serializers.kt:83) at kotlinx.serialization.SerializersKt__SerializersKt.serializer(Serializers.kt:59) at kotlinx.serialization.SerializersKt.serializer(Unknown Source) at com.epam.ClassCastExceptionTest.test(ClassCastExceptionTest.kt:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at...

bug
compiler-plugin

**What is your use-case and why do you need this feature?** I have a web app that displays some complex reports. There is a class hierarchy of "queries" that I'd...

feature
design

Originally reported as https://youtrack.jetbrains.com/issue/KT-52300 **To Reproduce** ```kotlin val descriptor = buildClassSerialDescriptor("FooBar") { isNullable = true } assertTrue(descriptor.isNullable) // throws ``` **Expected behavior** Either we should allow to create nullable descriptors...

bug