Removed default capacity of DynamicJsonDocument

This commit is contained in:
Benoit Blanchon
2019-01-14 10:32:19 +01:00
parent f0784d3b41
commit 9ac2ac303c
73 changed files with 163 additions and 155 deletions

View File

@ -8,7 +8,7 @@
template <typename T>
void check(T value, const std::string &expected) {
DynamicJsonDocument doc;
DynamicJsonDocument doc(4096);
doc.to<JsonVariant>().set(value);
char buffer[256] = "";
size_t returnValue = serializeJson(doc, buffer, sizeof(buffer));