you don't register a hierarchy. The class is view...
# jackson-kotlin
a
you don't register a hierarchy. The class is viewed as a whole, and the only magic done for Kotlin is to be able to use a class that has no default constructor and no
JsonCreator
, or a
JsonCreator
but no
JsonProperty
annotations. We fill in the gaps by implying a
JsonCreator
if one isn't in use, and then letting jackson know the parameter names for the constructor so it can decide to map to them. Inheritance doesn't come into play at all. That is normal Jackson behavior. heirarchy doesn't matter unless it is polymorphic, then you need
@JsonSubTypes
type annotations https://github.com/FasterXML/jackson-annotations/wiki/Jackson-Annotations