Package org.eclipse.jetty.util.ajax
Interface JSON.Convertor
-
- All Known Implementing Classes:
JSONCollectionConvertor
,JSONDateConvertor
,JSONEnumConvertor
,JSONObjectConvertor
,JSONPojoConvertor
,JSONPojoConvertorFactory
- Enclosing class:
- JSON
public static interface JSON.Convertor
Static JSON Convertor.may be implemented to provide static convertors for objects that may be registered with
JSON.registerConvertor(Class, org.eclipse.jetty.util.ajax.JSON.Convertor)
. These convertors are looked up by class, interface and super class byJSON.getConvertor(Class)
. Convertors should be used when the classes to be converted cannot implementJSON.Convertible
orJSON.Generator
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
fromJSON(java.util.Map object)
void
toJSON(java.lang.Object obj, JSON.Output out)
-
-
-
Method Detail
-
toJSON
void toJSON(java.lang.Object obj, JSON.Output out)
-
fromJSON
java.lang.Object fromJSON(java.util.Map object)
-
-