Package io.avaje.jsonb
Annotation Type Json
Marks a type for JSON support.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceExclude the property from serialization, deserialization or both.static @interfaceSpecify types to generate JsonAdapters for.static enumThe naming convention that we can use for a given type.static @interfaceOverride the json property name.static @interfaceMarks a String field as containing raw JSON content.static @interfaceSpecify the subtypes that a given type can be represented as.static @interfaceContainer of all the concrete SubType's that an interface type or abstract type can be represented as.static @interfaceAnnotate aMap<String,Object>field to hold unmapped json properties.static @interfaceMark a method on an Enum that provides the json value. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecify the naming convention to use for the properties on this type.When@Json.SubTypeis used this specifies the name of the property field that holds the type name (discriminator value).
-
Element Details
-
naming
Specify the naming convention to use for the properties on this type.- Default:
- Match
-
typeProperty
When@Json.SubTypeis used this specifies the name of the property field that holds the type name (discriminator value).This defaults to
@typewhen unspecified.- Default:
- ""
-