Test that JsonArray can contain inner arrays

This commit is contained in:
Benoit Blanchon
2014-10-05 15:13:00 +02:00
parent 305944e907
commit bbe034222c
6 changed files with 28 additions and 6 deletions

View File

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