Test that nested JsonObject can be stored

This commit is contained in:
Benoit Blanchon
2014-09-27 16:18:40 +02:00
parent bcc8cece24
commit bc44c36385
9 changed files with 114 additions and 5 deletions

View File

@ -1,8 +1,10 @@
#include "JsonBuffer.h"
#include "JsonNode.h"
#include "JsonObject.h"
#include <string.h> // for memset
#include "JsonNode.h"
#include "JsonObject.h"
#include "JsonValue.h"
JsonObject JsonBuffer::createObject()
{
@ -14,6 +16,12 @@ JsonObject JsonBuffer::createObject()
return JsonObject(node);
}
JsonValue JsonBuffer::createValue()
{
JsonNode* node = createNode(JSON_UNDEFINED);
return JsonValue(node);
}
JsonNode* JsonBuffer::createNode(JsonNodeType type)
{
JsonNode* node = allocateNode();