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.Convertor
public void toJSON(Object obj, JSON.Output out)
toJSON
in interface JSON.Convertor
Copyright © 1995-2015 Webtide. All Rights Reserved.