JsonDocument::clear()
Description
JsonDocument::clear()
clears the JsonDocument
and releases all the memory from the memory pool.
Unlike JsonArray::clear()
and JsonObject::clear()
, this function releases the memory from the memory pool; therefore, it doesn’t cause a memory leak.
Signature
void clear();