@Target(value={ANNOTATION_TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface JsonAnyGetter
Method (or Field)
to be used as an "any getter"; accessor for getting
a set of key/value pairs, to be serialized as part of containing POJO
(similar to unwrapping) along with regular property values it has.
This typically serves as a counterpart
to "any setter" mutators (see JsonAnySetter).
Note that the return type of annotated methods must be
Map).
"Any properties" will be serialized after regular properties.
As with JsonAnySetter, only one property should be annotated
with this annotation; if multiple methods are annotated, an exception
may be thrown.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
enabled
Optional argument that defines whether this annotation is active
or not.
|
public abstract boolean enabled
Copyright © 2008–2026 FasterXML. All rights reserved.