mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
28 lines
386 B
C++
28 lines
386 B
C++
#pragma once
|
|
|
|
#include "ArduinoJson/JsonValue.hpp"
|
|
|
|
namespace ArduinoJson
|
|
{
|
|
class JsonObjectKeyValue
|
|
{
|
|
public:
|
|
explicit JsonObjectKeyValue(Internals::JsonNode* node)
|
|
: _node(node)
|
|
{
|
|
}
|
|
|
|
const char* key()
|
|
{
|
|
return _node->getAsObjectKey();
|
|
}
|
|
|
|
JsonValue value()
|
|
{
|
|
return JsonValue(_node->getAsObjectValue());
|
|
}
|
|
|
|
private:
|
|
Internals::JsonNode* _node;
|
|
};
|
|
} |