Package org.codehaus.jackson.annotate
Annotation Type JsonAnyGetter
-
@Target(METHOD) @Retention(RUNTIME) public @interface JsonAnyGetter
Marker annotation that can be used to define a non-static, no-argument method or member field as something of a reverse ofJsonAnySetter
method; basically being used like a getter but such that contents of the returned Map (type must beMap
) are serialized as if they were actual properties of the bean that contains method/field with this annotations. As withJsonAnySetter
, only one property should be annotated with this annotation.- Since:
- 1.6