thanksforallthefish
10/12/2021, 6:52 AMInt
. with String
you get an exception, I guess it might be the compiler unwrapping Int
to integer
(compared to Integer
), where null == 0
also in plain java.
your second example needs a bit of configuration of the kotlin module,
jacksonObjectMapper().registerModule(KotlinModule(nullIsSameAsDefault = true))
(moved we don’t spam uninterested people)thanksforallthefish
10/12/2021, 6:54 AMInt
becomes 0
🤔Emil Kantis
10/12/2021, 7:03 AMvalue class
is not possible to use with jackson? 🤔Emil Kantis
10/12/2021, 7:04 AMthanksforallthefish
10/12/2021, 7:11 AMObjectMapper().findAndRegisterModules()
, no idea why jetbrains and spring goes “manual”, as jackson already provides an automatic way for scanEmil Kantis
10/12/2021, 7:18 AM