mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Test that JsonArray can contain inner arrays
This commit is contained in:
@ -47,4 +47,13 @@ void JsonArray::add(long value)
|
||||
|
||||
node->content.asInteger = value;
|
||||
addChild(node);
|
||||
}
|
||||
|
||||
void JsonArray::add(JsonContainer& innerContainer)
|
||||
{
|
||||
JsonNode* node = createNode(JSON_PROXY);
|
||||
if (!node) return;
|
||||
|
||||
node->content.asProxy.target = innerContainer._node;
|
||||
addChild(node);
|
||||
}
|
Reference in New Issue
Block a user