string json = "{\n\t\"code\":1,\n\t\"data\":\"\",\n\t\"msg\":\"验证码错误\"\n}";
var data = (JObject)JsonConvert.DeserializeObject(json);
string timeZone = data["Atlantic/Canary"].Value<string>();
c# get value from json object by key (C# 根据key获取json对象值)
最新推荐文章于 2024-01-29 22:20:55 发布