Class: JSON

JSON

Methods

(static) parse(String) → {Object}

Launch a new web request
Parameters:
Name Type Description
String String Value
Returns:
Object representation
Type
Object
Example
print(JSON.parse("{"uid":897946130,"fw_v":85,"cfg_v":139,"adc_sps":8002}")); // Print the string representation of the request object

(static) stringify(Object) → {String}

Launch a new web request
Parameters:
Name Type Description
Object Object JSON Object to convert to string
Returns:
String representation of object
Type
String
Example
let request = {
 msg: "hello from client",
 epoch: datetime().epoch
};
print(JSON.stringify(request)); // Print the string representation of the request object