mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Removed all friends of JsonValue
This commit is contained in:
25
include/ArduinoJson/JsonPair.hpp
Normal file
25
include/ArduinoJson/JsonPair.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
// Copyright Benoit Blanchon 2014
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Internals/JsonValueInternal.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonPair {
|
||||
public:
|
||||
const char *key() const { return _node->getAsObjectKey(); }
|
||||
|
||||
JsonValue value() {
|
||||
return Internals::JsonValueInternal(_node->getAsObjectValue());
|
||||
}
|
||||
|
||||
protected:
|
||||
explicit JsonPair(Internals::JsonNode *node) : _node(node) {}
|
||||
|
||||
Internals::JsonNode *_node;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user