Skip to content

Exception while deserializing json payload of abstract kotlin class from disk using BasicPolymorphicTypeValidator activateDefaultTyping #810

Answered by cowtowncoder
srusanvin asked this question in Q&A

You must be logged in to vote

Ok, so this:

data class WrapperProgramme(val programme: Any){}

would work without default typing only if @JsonTypeInfo (with appropriate settings) was added to "val programme".
Or with Default Typing if java.lang.Object is included (which includes most DefaultTyping cases).

Replies: 2 comments 8 replies

You must be logged in to vote
3 replies
@srusanvin

@cowtowncoder

@srusanvin

You must be logged in to vote
5 replies
@cowtowncoder

@srusanvin

@cowtowncoder

Answer selected by srusanvin
@srusanvin

@cowtowncoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants