C#中将string类型的json字符串转化成数组
时间:2017-05-11 13:30:16
收藏:0
阅读:1697
JObject json1 = (JObject)JsonConvert.DeserializeObject("ReContent");
JArray array = (JArray)json1["Phones"];
string aa = "";
foreach (var jObject in array)
{
//赋值属性
aa = jObject[""].ToString();//获取字符串中id值
}
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using System.Collections.Generic;
评论(0)