Skip to content
JsonBlock

Clear

void Clear()

Will delete all JsonElements in this JsonBlock and free all of their memory.


Examples

Json held in this JsonBlock:
{
    "name": "Angela Merkel",
    "appearance": "Blue men shoes",
    "kids": [
        "Stewie",
        "Chris",
        "Megatron"
    ],
    "pers_info": {
        "name": "Peter",
        "age": 56
    }
}
C++:
myJsonBlock.Clear();
And now our json looks like this
{}