@Target(value={ANNOTATION_TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface JsonView
An example annotation would be:
@JsonView(BasicView.class)which would specify that property annotated would be included when processing (serializing, deserializing) View identified by
BasicView.class
(or its sub-class).
If multiple View class identifiers are included, property will
be part of all of them.public abstract Class<?>[] value
Copyright © 2012 FasterXML. All Rights Reserved.