mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 03:52:16 +02: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