mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
Test that nested JsonObject can be stored
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user