org.eclipse.jetty.util.ajax
接口 JSON.Convertible

包容类:
JSON

public static interface JSON.Convertible

JSON Convertible object. Object 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()


方法摘要
 void fromJSON(Map object)
           
 void toJSON(JSON.Output out)
           
 

方法详细信息

toJSON

void toJSON(JSON.Output out)

fromJSON

void fromJSON(Map object)


Copyright © 2013. All Rights Reserved.