mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-30 02:37:35 +02:00
Fixed JsonBuffer size calculator
This commit is contained in:
@ -59,7 +59,7 @@
|
|||||||
elements.push(getExpression(obj[i]))
|
elements.push(getExpression(obj[i]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (obj instanceof Object) {
|
else if (obj instanceof Object) {
|
||||||
elements.push("JSON_OBJECT_SIZE(" + Object.keys(obj).length + ")");
|
elements.push("JSON_OBJECT_SIZE(" + Object.keys(obj).length + ")");
|
||||||
for (var key in obj) {
|
for (var key in obj) {
|
||||||
elements.push(getExpression(obj[key]))
|
elements.push(getExpression(obj[key]))
|
||||||
|
Reference in New Issue
Block a user