Package org.eclipse.jetty.util.ajax
Interface JSON.Convertible
- Enclosing class:
- JSON
public static interface JSON.Convertible
JSON Convertible object.
Classes can implement this interface in a similar way to the
Externalizable
interface is used to allow classes to
provide their own serialization mechanism.
A JSON.Convertible object may be written to a JSONObject or initialized from a Map of field names to values.
If the JSON is to be convertible back to an Object, then the method
JSON.Output.addClass(Class)
must be called from within
toJSON(Output)
.
-
Method Summary
-
Method Details
-
toJSON
-
fromJSON
-