mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Merged JsonArrayNode and JsonObjectNode into a single template
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
// Copyright Benoit Blanchon 2014
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../JsonVariant.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
|
||||
struct JsonArrayNode {
|
||||
JsonArrayNode() : next(NULL) {}
|
||||
|
||||
JsonVariant content;
|
||||
JsonArrayNode* next;
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -6,16 +6,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../JsonPair.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
|
||||
struct JsonObjectNode {
|
||||
JsonObjectNode() : next(NULL) {}
|
||||
template <typename T>
|
||||
struct Node {
|
||||
Node() : next(NULL) {}
|
||||
|
||||
JsonPair content;
|
||||
JsonObjectNode* next;
|
||||
T content;
|
||||
Node<T>* next;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user