@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD,METHOD})
public @interface JSONBean
Declare the annotated class, field, or getter method to be handled as a Java Bean regarding JSON mapping.
The annotated type must have a public constructor without arguments.
Each public getter/setter pair of the annotated type is used as a key in the corresponding JSON object.
- Author:
- Tomas Teubner