-
jsonToValue(jsonStr) → {Variant}
-
Convert a JSON string to value.
JSON serializer may be used if the value is a complex one (Object, Array, ObjectEx, etc.).
Parameters:
Name |
Type |
Description |
jsonStr |
String
|
|
- Source:
Returns:
-
Type
-
Variant
-
loadObj(srcNode, serializerOrName)
-
load object from srcNode.
Parameters:
Name |
Type |
Description |
srcNode |
Object
|
Storage node to load object. Different serializer requires different node. |
serializerOrName |
Variant
|
A ObjSerializer instance or name registered in ObjSerializerFactory.
Can be null to use the default serializer. |
- Source:
-
saveObj(obj, destNode, serializerOrName, options)
-
Save an object to destNode.
Parameters:
Name |
Type |
Description |
obj |
Variant
|
|
destNode |
Object
|
Storage node to save object. Different serializer requires different node. |
serializerOrName |
Variant
|
A ObjSerializer instance or name registered in ObjSerializerFactory.
Can be null to use the default serializer. |
options |
Hash
|
|
- Source:
-
valueToJson(value, options) → {String}
-
Convert a value to JSON string. If value is a complex type (Object, Array, ObjectEx),
JSON serializer will be used.
Parameters:
Name |
Type |
Description |
value |
Variant
|
|
options |
Hash
|
JSON serializer options |
- Source:
Returns:
-
Type
-
String