function (sJSON) { if (window.JSON) { return window.JSON.parse(sJSON); } else { return eval('(' + sJSON + ')'); } }