I want to use Kotlin data class in java with jackson serializer.
If I want to use koltin data class from Java then I must set default parameters to create a default constructor for jackson serializer.
Is there any other way?
@Evan R. thank you for response! So I have to add it to the Java project, am I right?
Maksim Vlasov
06/04/2019, 2:01 PM
Does it require any setup in such case? or just add it instead of jackson and that is it?
e
Evan R.
06/04/2019, 4:09 PM
It’s a module that plugs into jackson. Instructions are on the readme of the repo I linked you to, but TL;DR is that you apply the Kotlin Module to the Object Mapper wherever you have it defined, or in Kotlin you can just call the extension function