Added JsonContainer::prettyPrintTo()

This commit is contained in:
Benoit Blanchon
2014-10-07 11:22:10 +02:00
parent b6799dc231
commit 7a40711af3
19 changed files with 454 additions and 108 deletions

View File

@ -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);
}