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
Discussion options

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

Comment options

You must be logged in to vote
3 replies
@srusanvin
Comment options

@cowtowncoder
Comment options

@srusanvin
Comment options

Comment options

You must be logged in to vote
5 replies
@cowtowncoder
Comment options

@srusanvin
Comment options

@cowtowncoder
Comment options

Answer selected by srusanvin
@srusanvin
Comment options

@cowtowncoder
Comment options

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