在javascript里面怎么反序列化多级json数据呢?

老神仙,你这个
string jsonstr="{"Code":1,"Message":[{"merchant_id":8,"items":[{"count":2,"goods_name":"商品1 汉堡包22222","goods_des":"汉堡包的描述 有什么好描述的","goods_type":1,"price":19.80,"remark":"20元起送","send_range":"周边一公里","goods_id":2,"create_time":"2014-11-30 13:24:00","update_time":"2014-11-30 13:24:00","status":1,"user_name":"test123"},{"count":2,"goods_name":"商品1 汉堡包","goods_des":"汉堡包的描述 有什么好描述的","goods_type":1,"price":19.80,"remark":"20元起送","send_range":"周边一公里","goods_id":1,"create_time":"2014-11-30 13:24:43","update_time":"2014-11-30 13:24:43","status":1,"user_name":"test123"}]}]}";

这个数据的例子跟我的很像,我这想通过脚本完成整体的反序列化,不知道咋写,你那个
using Newtonsoft.Json;是在开发环境里面编写的吧,有没有好的写法在脚本就可以完成你帖子的反序列化功能啊

JSON.parse()

你括号外面加了“编译不了
jsonstr=jsonstr.replace(/"/,"");
这个是去除\的正则代码
把你的json放到bejson网站编译一下就知道问题在哪了
JSON在线校验格式化工具(Be JSON) 在线,JSON,JSON 校验,格式化,xml转json 工具,在线工具,json视图,可视化,程序,服务器,域名注册,正则表达式,测试,在线json格式化工具,json 格式化,json格式化工具,json字符串格式化,json 在线查看器,json在线,json 在线验证,json tools online,在线文字对比工具 https://www.bejson.com/explore/index_new/