JsonBlock¶
Remove¶
void Remove(const std::string label)
Will remove the JsonElement by the label label
and free its memory.
Will throw a JsonLabelDoesNotExistException, if that label does not exist.
You can check that with DoesExist()
.
Examples¶
Json held in this JsonBlock:¶
{
"name": "Angela Merkel",
"appearance": "Blue men shoes"
}
C++:¶
myJsonBlock.Remove("name");
And now our json looks like this¶
{
"appearance": "Blue men shoes"
}
Aliases¶
Alternative ways to call this function
myJsonBlock -= "name"