public static interface 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 by
JSON.getConvertor(Class)
. Convertors should be used when the
classes to be converted cannot implement JSON.Convertible
or
JSON.Generator
.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromJSON(java.util.Map object) |
void |
toJSON(java.lang.Object obj,
JSON.Output out) |
void toJSON(java.lang.Object obj, JSON.Output out)
java.lang.Object fromJSON(java.util.Map object)
Copyright © 1995–2023 Webtide. All rights reserved.