@Target(value={ANNOTATION_TYPE,METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) public @interface JsonAnySetter
Map
or POJO) -
to be used as a "fallback" handler
for all otherwise unrecognized properties found from JSON content.
It is similar to javax.xml.bind.annotation.XmlAnyElement
in behavior; and can only be used to denote a single property
per type.
If used, all otherwise unmapped key-value pairs from JSON Object values are added using mutator.
NOTE: ability to annotate fields was added in version 2.8; earlier only methods could be annotated.
NOTE: ability to annotate (constructor) parameters was added in version 2.17.
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–2024 FasterXML. All rights reserved.