forked from bblanchon/ArduinoJson
Remove capacity from JsonDocument's constructor
This commit is contained in:
1 parent
42b2840009
commit
0f319e7ca4
162 files changed
+438
-500
No files matched your search
@@ -53,12 +53,12 @@ TEST_CASE("OpenWeatherMap") {
|
||||
"]}";
|
||||
// clang-format on
|
||||
|
||||
JsonDocument filter(512);
|
||||
JsonDocument filter;
|
||||
filter["list"][0]["dt"] = true;
|
||||
filter["list"][0]["main"]["temp"] = true;
|
||||
filter["list"][0]["weather"][0]["description"] = true;
|
||||
|
||||
JsonDocument doc(16384);
|
||||
JsonDocument doc;
|
||||
|
||||
REQUIRE(
|
||||
deserializeJson(doc, input_json, DeserializationOption::Filter(filter)) ==
|
||||
|
||||
Reference in new issue
Block a user