public static interface JSON.Convertor
may be implemented to provide static convertors for objects that may be registered with JSON#registerConvertor(Class, org.mortbay.util.ajax.JSON.Convertor). These convertors are looked up by class, interface and super class by {@link JSON#getConvertor(Class)}. Convertors should be used when the classes to be converted cannot implement {@link Convertible} or {@link Generator}.
Modifier and Type | Method and Description |
---|---|
Object |
fromJSON(Map object) |
void |
toJSON(Object obj,
JSON.Output out) |
void toJSON(Object obj, JSON.Output out)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.