Hello. I use jackson for deserialize xml to kotlin...
# jackson-kotlin
k
Hello. I use jackson for deserialize xml to kotlin data classes. I have data class like this
data class AAA(val list: List[String])
. How is to enable list deserialization as empty list instead of null?
d
KotlinModule(nullisSameAsDefault=true)
and
data class AAA(val list: List<String> = emptyList())
should do the trick, untested though
172 Views