本文介绍了如何在JSON.NET C#上删除某个父节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图删除
I was trying to remove the
"meta": {
"status_code": 200,
"status": "OK",
"message": "",
"more_info": null,
"token_owner": 100009
},
来自
From
{
"meta": {
"status_code": 200,
"status": "OK",
"message": "",
"more_info": null,
"token_owner": 100009
},
"data": {
"id": 100009,
"slug": "",
"type": "organization",
"display_name": "Default",
"avatar":
}
}
问题是我发布的内容我是什么尝试过:不工作
我尝试过:
Problem is what I posted on "What I have tried:" is not working
What I have tried:
JObject rss = JObject.Parse(Convert.ToString(output));
JObject channel = (JObject)rss["channel"];
channel.Property("meta");
string new_str_JSON = rss.ToString();
推荐答案
这篇关于如何在JSON.NET C#上删除某个父节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!