Has anyone encountered issues using data classes w...
# jackson-kotlin
j
Has anyone encountered issues using data classes with
jackson-module-kotlin
? I’m trying to get it to deserialize results with the Elasticsearch client, and have registered the Kotlin extension with
registerKotlinModule
. Unfortunately it says
Cannot construct instance of Foo (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
. When decompiling the class, it actually has two constructors (one private and public), which we’re not seeing in the data classes that do deserialize correctly (those only have one public constructor)