Package io.avaje.jsonb
Annotation Type Json
-
@Retention(CLASS) @Target(TYPE) public @interface Json
Marks a type for JSON support.Examples:
{@code
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleancaseInsensitiveKeysWhen set to true on deserialization keys are matched insensitive to case.Json.NamingnamingSpecify the naming convention to use for the properties on this type.StringtypePropertyWhen@Json.SubTypeis used this specifies the name of the property field that holds the type name (discriminator value).
-
-
-
Element Detail
-
naming
Json.Naming naming
Specify the naming convention to use for the properties on this type.By default, the naming used is
Json.Naming.Match- Default:
- io.avaje.jsonb.Json.Naming.Match
-
-
-
typeProperty
String 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:
- "@type"
-
-