⚠️ Subject to changeVersion 6 is currently in beta, so the API
Unless 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.
JsonObject::clear(), this function releases the memory from the memory pool; therefore, it doesn’t cause a memory leak.