new JsonObjSerializer()
Use JSON to do serialization job.
- Source:
Extends
Methods
-
load(obj, storageNode) → {Object}
-
load an object from storageNode.
Parameters:
Name Type Description obj
Object Object to load, can be a normal Object or ObjectEx. Leave this param to null will force the serializer create a new instance. storageNode
Object Node to save data. Each concrete serializer has its own type of node to store data. - Inherited From:
- Source:
Returns:
Object loaded.- Type
- Object
-
save(obj, storageNode, options)
-
Save an object to destNode.
Parameters:
Name Type Description obj
Object Object to save, can be a normal Object or ObjectEx. storageNode
Object Node to save data. Each concrete serializer has its own type of node to store data. options
Hash Save options. Can have the following fields: { saveDefaultValues: Bool, propFilter: function(prop, obj), return value decides which property should be saved } - Inherited From:
- Source: