objectToString
converts an object to a json formatted string
Syntax
objectToString(object)
Returns
returns (string) in json format
Parameters
- object (object)
Usage
function TestJSON(){
// converts to and back; a JSON object to a string
var json_string = "{ \"prop1\" : \"value1\" }";
var json = stringToObject(json_string);
json["prop2"] = "value2";
echo(objectToString(json));
}