flexjson
Annotation Type JSON


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

This annotation is used by JSONSerializer to include or exclude fields from the JSON serialization process. You may annotate fields or methods with this, but be consistent if you start doing one vs. the other. Typically this will be used to exclude fields that should never be included in the serialization. For example the password of a User.


Optional Element Summary
 boolean include
           
 String name
           
 Class<? extends ObjectFactory> objectFactory
           
 Class<? extends Transformer> transformer
           
 

name

public abstract String name
Default:
""

include

public abstract boolean include
Default:
true

transformer

public abstract Class<? extends Transformer> transformer
Default:
flexjson.transformer.Transformer.class

objectFactory

public abstract Class<? extends ObjectFactory> objectFactory
Default:
flexjson.ObjectFactory.class


Copyright © 2014. All Rights Reserved.