mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-24 07:47:32 +02:00
Test that nested JsonObject can be stored
This commit is contained in:
@ -1,12 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
struct JsonNode;
|
||||
//class JsonBuffer;
|
||||
|
||||
class JsonValue
|
||||
{
|
||||
public:
|
||||
|
||||
explicit JsonValue()
|
||||
: _node(0)
|
||||
{
|
||||
}
|
||||
|
||||
explicit JsonValue(JsonNode* node)
|
||||
: _node(node)
|
||||
{
|
||||
@ -16,14 +20,15 @@ public:
|
||||
void operator=(const char*);
|
||||
void operator=(double);
|
||||
void operator=(int);
|
||||
|
||||
void operator=(const JsonObject&);
|
||||
|
||||
operator bool() const;
|
||||
operator const char*() const;
|
||||
operator double() const;
|
||||
operator int() const;
|
||||
operator JsonObject() const;
|
||||
|
||||
private:
|
||||
//JsonBuffer& _buffer;
|
||||
JsonNode* _node;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user