JQuery中 json 和字符串直接相互转换

json字符串转json对象:jQuery.parseJSON(jsonStr);
json对象转json字符串:JSON.stringify(jsonObj);
 
IE中可能对unicode使用“uXXXX”格式来编码,可以使用如下来解码:
function unicode2Char(str) {
return (str.replace(/\/g, "%"));
}
原文地址:https://www.cnblogs.com/tiancai/p/5028385.html