标签:status pre color bsp 读取 stat aaa div str
using Newtonsoft.Json; using Newtonsoft.Json.Linq; string jsonText = "[{‘a‘:‘aaa‘,‘b‘:‘bbb‘,‘c‘:‘ccc‘},{‘a‘:‘aaa2‘,‘b‘:‘bbb2‘,‘c‘:‘ccc2‘}]"; string a = JObject.Parse(JArray.Parse(jsonText)[0].ToString())["a"].ToString();
string jsonText = "{‘a‘:‘aaa‘,‘b‘:‘bbb‘,‘c‘:‘ccc‘}" JObject jo = JObject.Parse(jsonText); string a = jo["status"].ToString();
Newtonsoft.Json.dll读取json格式字符串值
标签:status pre color bsp 读取 stat aaa div str
原文地址:http://www.cnblogs.com/ghelement/p/6434548.html