Package org.eclipse.jetty.util.ajax
Class JSONPojoConvertorFactory
java.lang.Object
org.eclipse.jetty.util.ajax.JSONPojoConvertorFactory
- All Implemented Interfaces:
JSON.Convertor
-
Constructor Summary
ConstructorDescriptionJSONPojoConvertorFactory
(JSON json) JSONPojoConvertorFactory
(JSON json, boolean fromJSON) -
Method Summary
-
Constructor Details
-
JSONPojoConvertorFactory
-
JSONPojoConvertorFactory
- Parameters:
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).
-
-
Method Details
-
toJSON
- Specified by:
toJSON
in interfaceJSON.Convertor
-
fromJSON
- Specified by:
fromJSON
in interfaceJSON.Convertor
-