Jackson Glossary: JsonTypeInfo

Role

This is the main annotation used to enable handling of polymorphic types: that is, cases where actual type of a property value may be one of multiple subtypes, and the declared (static) type is not enough to determine which one to deserialize value as.

Properties

Usage

This annotation is added either to a Class (which MUST be the base class of subtypes that are used); or to a property. Interpretation differs in that when used for a property, information will apply to contents of container types (Lists, Maps, arrays).


Back to Jackson Term Glossary


CategoryJackson

JsonTypeInfo (last edited 2012-02-21 06:40:48 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC