Files
ArduinoJson/srcs/JsonObject.h
2014-10-01 16:18:14 +02:00

31 lines
505 B
C++

#pragma once
#include "JsonContainer.h"
class JsonValue;
struct JsonNode;
class JsonObject : public JsonContainer
{
friend JsonValue;
public:
JsonObject()
{
}
explicit JsonObject(JsonNode* node)
: JsonContainer(node)
{
}
size_t size();
JsonValue operator[](const char* key);
void remove(const char* key);
bool operator==(const JsonObject& other) const;
private:
JsonNode* getOrCreateNodeAt(char const* key);
};