87,969
社区成员
发帖
与我相关
我的任务
分享
string[] jsonStr = {"{\"name\":\"De_29352\",\"value\":\"aaaa\"}", "{ \"name\":\"De_29401\",\"value\":\"bbbb\"}" };
List<person> person_list = new List<global::person>();
foreach (var item in jsonStr)
{
person one = JsonConvert.DeserializeObject<person>(item);
person_list.Add(one);
}
foreach (var person in person_list)
{
Response.Write(person.name);
}
实体类 person(换成a即可)
public class person
{
public string name { get; set; }
public string value { get; set; }
}