这个JSON 用C# Newtonsoft.Json 如何解析
答案:2 悬赏:30 手机版
解决时间 2021-03-29 18:08
- 提问者网友:情歌越听越心酸
- 2021-03-28 18:09
[1,[1,[63219752,84422526],[[63219752,"b406f78da5ef34039920b104a0edc2e7",{"uid":"63219752","ujob":"1","sex":"2","uname":"\u5b99\u738b\u795e","ulv":"20","zhanli":"1745","vip":"0","step":"5","senior":"0"}],[84422526,"3e53298b5d4686f2827886cf6ae6d7ae",{"uid":"84422526","ujob":"2","sex":"2","uname":"\u821e\u7dcb\u6afb","ulv":"109","zhanli":"2494956","vip":"2","step":"5","senior":"7"}]]]]
最佳答案
- 五星知识达人网友:独行浪子会拥风
- 2019-05-18 19:00
string str =File.ReadAllText("D:\\001.json");//我把那段json保存到文件了,实际str的值就是那段json
var serializer =
Newtonsoft.Json.JsonSerializer.Create();
var obj = serializer.Deserialize(
new Newtonsoft.Json.JsonTextReader(new StringReader(str))
) as Newtonsoft.Json.Linq.JArray;这个json是一个数组
var serializer =
Newtonsoft.Json.JsonSerializer.Create();
var obj = serializer.Deserialize(
new Newtonsoft.Json.JsonTextReader(new StringReader(str))
) as Newtonsoft.Json.Linq.JArray;这个json是一个数组
全部回答
- 1楼网友:神的生死簿
- 2020-07-14 06:27
jobject obj = new jobject(
new jproperty("aa", "
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯