josn中删除一个字段
json中删除一个字段
string jsonBody = JsonConvert.SerializeObject(jblist, settings);
JArray jsonArray = JArray.Parse(jsonBody);
foreach (JObject item in jsonArray)
{
item.Remove("WELL_PINYIN");
}
jsonBody = jsonArray.ToString();
json中删除一个字段
string jsonBody = JsonConvert.SerializeObject(jblist, settings);
JArray jsonArray = JArray.Parse(jsonBody);
foreach (JObject item in jsonArray)
{
item.Remove("WELL_PINYIN");
}
jsonBody = jsonArray.ToString();