1,

javascript 转为json js转换成json对象_JSON

 

 

var str = {"name":"菜鸟教程", "site":"http://www.runoob.com"}
str_pretty1 = JSON.stringify(str)

 

琥珀君的博客