jackson-module-kotlin
jackson-module-kotlin copied to clipboard
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
It would be nice to have support for stringly-typed values, such as `@JvmInline value class SKU(val value: String)`. Writing custom map key deserializers for every custom Kotlin value type that...
**Describe the bug** When calling the objectMapper's writeValueAsString and passing a Kotlin data class to the function, any of the variables that begin with "is" such as "isDayTime" and that...
**Describe the bug** Controlling the serialized field name with `@JsonProperty` doesn't appear to be working for fields in a superclass. **To Reproduce** ``` open class Parent(@JsonProperty("parent-prop") val parent: String) class...
**Your question** We would like to make use of kotlins 'inheritance by delegation' feature. In the json-structure the object should be flat, i.e. not exposing the delegation. Suppressing the delegation...
**Describe the bug** Custom methods cannot be used for map types and generics **To Reproduce** Test case or steps to reproduce the behavior or.     long to...
Kotlin 1.3 has experimental [inline classes](https://kotlinlang.org/docs/reference/inline-classes.html). When wrapping a primitive type, an inline class instance is just compiled to the primitive type, making the code very efficient, whie still keeping...
I would like to ask how to properly configure an ObjectMapper to make it capable of deserializing data classes with kotlin-specific integer fields. Out of the box it works e.g....
**Describe the bug** This bug is an offspring of https://github.com/spring-projects/spring-kafka/issues/2306 As described there spring-kafka tries to serialize exceptions, which fails with ``` java.lang.RuntimeException: Could not deserialize type java.io.NotSerializableException with message...
**Describe the bug** The issue that I am facing similar to [Issue 194](https://github.com/FasterXML/jackson-module-kotlin/issues/194) but extended. When I try to use the similar setup but json value would not have id...
Hello, I am using a custom `TypeResolverBuilder` to enable custom polymorphic deserialization for classes to which I can't add Jackson annotations. Here's a sample piece of (Kotlin) code, followed by...