我的服务器返回一个有效的JSON字符串(JSONP)。将JSON字符串传递给javascript函数
例如parseJSON ({"NAME":"Tom"});
在客户端我有这个功能实现
function parseJSON (myOBJ) {
//myOBJ is already a JSON object but I wanted to it to be a JSON string
// so that I can check
// if browser supports JSON.parse otherwise do eval on that string.
}
https://github.com/douglascrockford/JSON-js/blob/master/json2.js – ThiefMaster 2012-03-20 06:39:28