Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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();
Posted
Updated 1-Jul-18 10:33am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900