Does anyone have an example of creating a static `...
# jackson-kotlin
w
Does anyone have an example of creating a static
@JsonCreator
in kotlin? I tried it as an extension function, an jackson doesn't see it. This is the delegate/Map variant of a JsonCreator
d
For jackson to be able to see it, it must be a static method inside the class from a java perspective. To achieve that in Kotlin, put the method in the class' companion object and mark it with
@JvmStatic
.
w
I will try this, thanks!