첫 번째 유형
JSON.parse(jsonString)
두 번째 유형
eval("("+jsonString+")")
세 번째 유형
var obj=(function ToJSON(o){ if(typeof(o)=="string")try{return new Function("return "+o)();}catch(e){return null;} })("[{name:'zhangsan',age:'24'},{name:'lisi',age:'30'},{name:'wangwu',age:'16'},{name:'tianqi',age:'7'}]"); for(var b in obj)alert(obj[b].name);