夜雪安好
2021-08-19 14:38
采纳率: 40%
浏览 86

在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;是在开发环境里面编写的吧,有没有好的写法在脚本就可以完成你帖子的反序列化功能啊

2条回答 默认 最新

相关推荐 更多相似问题