(deprecated) objectToString
use JSON.stringify instead. **echo(JSON.stringify(object, null, 2));**
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));
}