Module jakarta.json.bind
Package jakarta.json.bind.annotation
Annotation Interface JsonbPropertyOrder
@JsonbAnnotation
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,TYPE})
public @interface JsonbPropertyOrder
Specifies order in which properties are serialized.
Partial mapping can also be specified. In that case, properties included in annotation declaration will be serialized first (in defined order), followed by any properties not included in the definition. The order of properties not included in the definition is not guaranteed.
- Since:
- JSON Binding 1.0
-
Required Element Summary
-
Element Details
-
value
String[] valueOrder in which properties are serialized. Names must correspond to original names defined in Java class before any customization applied.- Returns:
- Array of property names which defines an order.
-