org.codehaus.jackson.annotate
Annotation Type JsonAnySetter


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface JsonAnySetter

Marker annotation that can be used to define a non-static, single-argument method, 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 structs are added to the property (of type Map or bean).

!!! 13-Mar-2009, tatu: NOTE: Support for this annotation Not Yet Implemented!