Files
ArduinoJson/srcs/JsonObject.h

31 lines
505 B
C
Raw Normal View History

#pragma once
2014-10-01 16:13:36 +02:00
#include "JsonContainer.h"
2014-09-30 16:40:00 +02:00
class JsonValue;
struct JsonNode;
2014-10-01 16:13:36 +02:00
class JsonObject : public JsonContainer
{
friend JsonValue;
public:
2014-09-27 15:19:03 +02:00
JsonObject()
{
}
2014-10-01 16:13:36 +02:00
explicit JsonObject(JsonNode* node)
: JsonContainer(node)
{
}
size_t size();
JsonValue operator[](const char* key);
void remove(const char* key);
2014-09-28 21:04:59 +02:00
bool operator==(const JsonObject& other) const;
2014-09-27 15:19:03 +02:00
private:
JsonNode* getOrCreateNodeAt(char const* key);
};