forked from bblanchon/ArduinoJson
Formated code with clang-format
This commit is contained in:
@ -3,40 +3,26 @@
|
||||
#include "ArduinoJson/JsonContainer.hpp"
|
||||
#include "ArduinoJson/JsonObjectIterator.hpp"
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
class JsonObject : public JsonContainer
|
||||
{
|
||||
public:
|
||||
namespace ArduinoJson {
|
||||
class JsonObject : public JsonContainer {
|
||||
public:
|
||||
JsonObject() {}
|
||||
|
||||
JsonObject()
|
||||
{
|
||||
}
|
||||
explicit JsonObject(Internals::JsonNode *node) : JsonContainer(node) {}
|
||||
|
||||
explicit JsonObject(Internals::JsonNode* node)
|
||||
: JsonContainer(node)
|
||||
{
|
||||
}
|
||||
JsonValue operator[](const char *key);
|
||||
void remove(const char *key);
|
||||
|
||||
JsonValue operator[](const char* key);
|
||||
void remove(const char* key);
|
||||
JsonArray createNestedArray(const char *key);
|
||||
JsonObject createNestedObject(const char *key);
|
||||
|
||||
JsonArray createNestedArray(const char* key);
|
||||
JsonObject createNestedObject(const char* key);
|
||||
bool success() { return _node && _node->isObject(); }
|
||||
|
||||
bool success()
|
||||
{
|
||||
return _node && _node->isObject();
|
||||
}
|
||||
JsonObjectIterator begin();
|
||||
|
||||
JsonObjectIterator begin();
|
||||
JsonObjectIterator end() { return JsonObjectIterator(0); }
|
||||
|
||||
JsonObjectIterator end()
|
||||
{
|
||||
return JsonObjectIterator(0);
|
||||
}
|
||||
|
||||
private:
|
||||
Internals::JsonNode* getOrCreateNodeAt(const char* key);
|
||||
};
|
||||
private:
|
||||
Internals::JsonNode *getOrCreateNodeAt(const char *key);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user