Serialization
When sending information over the line in json
format, the Serializable
clazz can help. This Class will help you
in serializing your classes into a json
format.
The class also helps you deserialize a serialized object in json
format.
var SerializableObject = clazz(function SerializableObject(){
this.extend = 'Serializable';
this.constructor = function constructor(serialized){
this.super(serialized);
};
});