mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-02 15:41:37 +01:00
Remove JSON_ARRAY_SIZE(), JSON_OBJECT_SIZE(), and JSON_STRING_SIZE()
This commit is contained in:
@@ -78,8 +78,7 @@ void setup() {
|
||||
|
||||
// Allocate the JSON document
|
||||
// Use https://arduinojson.org/v6/assistant to compute the capacity.
|
||||
const size_t capacity = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2) + 60;
|
||||
JsonDocument doc(capacity);
|
||||
JsonDocument doc(256);
|
||||
|
||||
// Parse JSON object
|
||||
DeserializationError error = deserializeJson(doc, client);
|
||||
|
||||
Reference in New Issue
Block a user