mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 08:48:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			571 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			571 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;
 | |
|   friend class JsonObjectIterator;
 | |
| 
 | |
|  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;
 | |
| };
 | |
| }
 |