jackson-module-kogera
jackson-module-kogera copied to clipboard
Lightweight and high-performance jackson-module-kotlin
When a value class object is serialized the unterlying type is used. If the value class implments an interface, array polymorphism is used to store the type. However the type...
Additional features to solve https://github.com/FasterXML/jackson-module-kotlin/issues/777 .
The `ValueClassDeserializer::getBoxedNullValue` is called only from the `KotlinValueInstantiator`. This causes deserialization to fail as per the subject. ```kotlin @JvmInline value class NullableObject(val v: String?) val result = mapper.readValue("null") ``` This...
The problem occurs when deserializing the following `D` with default arguments. ```kotlin @JvmInline value class NullableObject(val v: String?) data class D(val v: NullableObject = NullableObject("")) ``` The cause is that...
It can be reproduced by defining `bar` as follows ```kotlin @JvmInline value class VC(val value: Int) interface I { val foo: T val bar: T get() = foo } class...
This is a shortcoming in `jackson-module-kotlin` that I hoped could be fixed by this project. Consider the mapper ```kotlin val mapper = ObjectMapper() .registerKotlinModule() .setSerializationInclusion(JsonInclude.Include.NON_DEFAULT) ``` and the class ```kotlin...
- If the unboxed value is `null` (the `value` of the `value class` is `nullable` and the property is `non-null`). - It is difficult to resolve this case, see https://github.com/FasterXML/jackson-databind/issues/3744