Test that JsonArray can contain inner arrays

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

No files matched your search

+9
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);
}