mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Added JsonContainer::prettyPrintTo()
This commit is contained in:
@ -56,4 +56,17 @@ void JsonArray::add(JsonContainer& innerContainer)
|
||||
|
||||
node->content.asProxy.target = innerContainer._node;
|
||||
addChild(node);
|
||||
}
|
||||
|
||||
JsonArray JsonArray::createNestedArray()
|
||||
{
|
||||
JsonNode* node = createNode(JSON_ARRAY);
|
||||
|
||||
if (node)
|
||||
{
|
||||
node->content.asContainer.buffer = _node->content.asContainer.buffer;
|
||||
addChild(node);
|
||||
}
|
||||
|
||||
return JsonArray(node);
|
||||
}
|
Reference in New Issue
Block a user