Hi everyone. Coming from Java and trying to unders...
# spring
s
Hi everyone. Coming from Java and trying to understand how to use
@JsonDeserializer
and
@JsonSerializer
. By now all that have discovered is that Kotlin uses
jackson-module-kotlin
without any success though. Thanks for reading and helping this fellow software engineer.
c
I'm not sure what is the problem you're having, but having had some dealings with Jackson, I can point you in the direction of annotation targets. For example:
@get:JsonDeserialize
there are also
set
,
field
,
param
and other targets. https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets
s
Thanks @Czar for the reply. Going to read the document and figure out the way.