Skip to end of metadata
Go to start of metadata



Method Summary
Object fromJSON(data)
Deserialize from JSON text to an object.
String toJSON(obj)
Serialize an object to JSON text.



Method Details

fromJSON

Object fromJSON (data)
Deserialize from JSON text to an object.

Parameters

{String} data

Returns

Sample

var org_array = new Array('A1','F1','Paris-Dakar');
var string_data = plugins.serialize.toJSON(org_array);
var new_array = plugins.serialize.fromJSON(string_data);
application.output(new_array.join('#'));
 

toJSON

String toJSON (obj)
Serialize an object to JSON text.

Parameters

{Object} obj

Returns

Sample

var org_array = new Array('A1','F1','Paris-Dakar');
var string_data = plugins.serialize.toJSON(org_array);
var new_array = plugins.serialize.fromJSON(string_data);
application.output(new_array.join('#'));
 



  • No labels