mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 12:02:14 +02:00
28 lines
589 B
C++
28 lines
589 B
C++
// Copyright Benoit Blanchon 2014
|
|
// MIT License
|
|
//
|
|
// Arduino JSON library
|
|
// https://github.com/bblanchon/ArduinoJson
|
|
|
|
#pragma once
|
|
|
|
#include "ForwardDeclarations.hpp"
|
|
#include "JsonValue.hpp"
|
|
|
|
namespace ArduinoJson {
|
|
class JsonObjectKeyValue {
|
|
friend class JsonObject;
|
|
template <typename T>
|
|
friend class JsonIterator;
|
|
|
|
public:
|
|
const char *key() const { return _node->getAsObjectKey(); }
|
|
JsonValue value() { return JsonValue(_node->getAsObjectValue()); }
|
|
|
|
private:
|
|
explicit JsonObjectKeyValue(Internals::JsonNode *node) : _node(node) {}
|
|
|
|
Internals::JsonNode *_node;
|
|
};
|
|
}
|