JS 字面量对象 转成 json 字符串 var arr = [1,2,3, { a : 1 } ];JSON.stringify( arr );字符串解析成 JSONvar str = '[1,2,3,{"a":1}]';JSON.parse( str );