C#---第22:Newtonsoft中json/array的解析、创建、SelectToken(获取指定values)方法
1.解析json&array(1)json解析usingNewtonsoft.Json.Linq;stringjson=@"{CPU:'Intel',Drives:['DVDread/writer','500gigabyteharddrive']}";JObjecto=JObject.Parse(json);Console.WriteLine(o.GetType());Console.WriteL