Hello,

What is the equivalent of @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, 
include = JsonTypeInfo.As.PROPERTY) in the ObjectMapper without using 
annotations (or mixins) ?

I'm looking for something like 
ObjectMapper().registerTypeInfo(MyBaseClass::class, Id.CLASS, As.PROPERTY)

Also, I don't want to activateDefaultTyping(), I just want typing for class 
I specified (like @JsonTypeInfo behavior)

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/8eeb9de0-e454-426d-9500-ae4f73a1595an%40googlegroups.com.

Reply via email to