这个JSON 用C# Newtonsoft.Json 如何解析
[1,[1,[63219752,84422526],[[63219752,"b406f78da5ef34039920b104a0edc2e7",{"uid":"63219...
[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"}]]]]
展开
展开全部
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是一个数组
追问
请问那我应该如何获取json中指定的值呢 比如说3e53298b5d4686f2827886cf6ae6d7ae和"uid":"84422526"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询