Package io.avaje.jsonb
Annotation Type Json
-
@Retention(CLASS) @Target(TYPE) public @interface Json
Marks a type for JSON support.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description 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.- 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:
- ""
-
-