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 boolean
caseInsensitiveKeys
When set to true on deserialization keys are matched insensitive to case.Json.Naming
naming
Specify the naming convention to use for the properties on this type.String
typeProperty
When@Json.SubType
is 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.SubType
is used this specifies the name of the property field that holds the type name (discriminator value).This defaults to
@type
when unspecified.- Default:
- "@type"
-
-