@Target({TYPE,FIELD,METHOD,PARAMETER})
@Retention(RUNTIME)
public @interface JsonSubTypes
JsonTypeInfo to indicate sub types of serializable
polymorphic types, and to associate logical names used within JSON content
(which is more portable than using physical Java class names).| Modifier and Type | Required Element | Description |
|---|---|---|
JsonSubTypes.Type[] |
value |
Subtypes of the annotated type (annotated class, or property value type
associated with the annotated method).
|
JsonSubTypes.Type[] value