Skip to content

Serialization

Compare
Choose a tag to compare
@EnoF EnoF released this 13 May 06:22
· 10 commits to master since this release

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);
    };
});