mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 21:12:25 +02:00
Renamed all .h files into .hpp (so that Sublime Text selects C++ syntax)
This commit is contained in:
29
include/ArduinoJson/JsonObject.hpp
Normal file
29
include/ArduinoJson/JsonObject.hpp
Normal file
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "JsonContainer.hpp"
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
class JsonObject : public JsonContainer
|
||||
{
|
||||
public:
|
||||
|
||||
JsonObject()
|
||||
{
|
||||
}
|
||||
|
||||
explicit JsonObject(Internals::JsonNode* node)
|
||||
: JsonContainer(node)
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue operator[](const char* key);
|
||||
void remove(const char* key);
|
||||
|
||||
JsonArray createNestedArray(const char* key);
|
||||
JsonObject createNestedObject(const char* key);
|
||||
|
||||
private:
|
||||
Internals::JsonNode* getOrCreateNodeAt(const char* key);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user