Name
global.JSONParser
Description
JSON Parser that does not use javascript s eval() function. Safe and secure. It does not check for the validity of the JSON string, but shouldn t create any catastrophic errors.
Script
/**
* Parses JSON string to javascript object
*
* tom.dilatush@service-now.com
*/
var JSONParser = Class.create();
JSONParser.prototype = {
parse: function (source) {
if (JSUtil.nil(source))
return;
return new SNC.JSONParse().decode(source);
}
};
Sys ID
3ceff5790a0a0bae00e49c7f3c7ced38