Removing a value¶
Example on how to remove elements from an existing json
We have this json:¶
{
"name": "Parry Hotter",
"age": 30,
"height": 184.9,
"isMale": false
}
C++:¶
Json json;
json.Parse(aboveJsonCode); // we have an already filled json
json.Remove("name");
That's it. Our json now looks like this:
Json:¶
{
"age": 30,
"height": 184.9,
"isMale": false
}