JsonDocument::clear()
⚠️ Subject to change
Version 6 is currently in beta, so the APIUnless you need the new features of version 6 (e.g. MessagePack), please use version 5.13.4.
Version 6 should stay in beta stage until march 2019.
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();