-
- Enclosing class:
- JSON
public static interface JSON.ConvertibleJSON Convertible object.
Classes can implement this interface in a similar way to the
Externalizableinterface 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 withintoJSON(Output).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfromJSON(java.util.Map<java.lang.String,java.lang.Object> object)voidtoJSON(JSON.Output out)
-
-
-
Method Detail
-
toJSON
void toJSON(JSON.Output out)
-
fromJSON
void fromJSON(java.util.Map<java.lang.String,java.lang.Object> object)
-
-