public class JSONPojoConvertorFactory extends Object implements JSON.Convertor
| Constructor and Description |
|---|
JSONPojoConvertorFactory(JSON json) |
JSONPojoConvertorFactory(JSON json,
boolean fromJSON) |
public JSONPojoConvertorFactory(JSON json)
public JSONPojoConvertorFactory(JSON json, boolean fromJSON)
json - The JSON instance to usefromJSON - If true, the class name of the objects is included
in the generated JSON and is used to instantiate the object when
JSON is parsed (otherwise a Map is used).public void toJSON(Object obj, JSON.Output out)
toJSON in interface JSON.Convertorpublic Object fromJSON(Map object)
fromJSON in interface JSON.ConvertorCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.