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;
时间: 2024-10-12 20:49:35