flexjson
Annotation Type JSON


@Retention(value=RUNTIME)
@Target(value={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
           
 

include

public abstract boolean include
Default:
true


Copyright © 2010. All Rights Reserved.