JsonInclude (Jackson-annotations 2.1.0 API)
Date: 2012-10-05

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.fasterxml.jackson.annotation
Annotation Type JsonInclude

    @Target(value={ANNOTATION_TYPE,METHOD,FIELD,TYPE,PARAMETER})
    @Retention(value=RUNTIME)
    public @interface JsonInclude

Annotation used to indicate when value of the annotated property (when used for a field, method or constructor parameter), or all properties of the annotated class, is to be serialized. Without annotation property values are always included, but by using this annotation one can specify simple exclusion rules to reduce amount of properties to write out.

Since:
  2.0

Optional Element Summary
`JsonInclude.Include` | `value` Inclusion rule to use.

### value

    public abstract JsonInclude.Include value

  Inclusion rule to use.

  Default:
    com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2012 FasterXML. All Rights Reserved.