public class JSONObjectConvertor extends Object implements JSON.Convertor
| Constructor and Description |
|---|
JSONObjectConvertor() |
JSONObjectConvertor(boolean fromJSON) |
JSONObjectConvertor(boolean fromJSON,
String[] excluded) |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromJSON(Map map) |
protected boolean |
includeField(String name,
Object o,
Method m) |
void |
toJSON(Object obj,
JSON.Output out) |
public JSONObjectConvertor()
public JSONObjectConvertor(boolean fromJSON)
public JSONObjectConvertor(boolean fromJSON,
String[] excluded)
fromJSON - excluded - An array of field names to exclude from the conversionpublic Object fromJSON(Map map)
fromJSON in interface JSON.Convertorpublic void toJSON(Object obj, JSON.Output out)
toJSON in interface JSON.ConvertorCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.