mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			491 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			491 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright Benoit Blanchon 2014-2016
 | |
| // MIT License
 | |
| //
 | |
| // Arduino JSON library
 | |
| // https://github.com/bblanchon/ArduinoJson
 | |
| // If you like this project, please add a star!
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "Arduino/String.hpp"
 | |
| 
 | |
| namespace ArduinoJson {
 | |
| 
 | |
| class JsonObjectKey {
 | |
|  public:
 | |
|   JsonObjectKey() {}
 | |
|   JsonObjectKey(const char* key) : _data(key) {}
 | |
|   JsonObjectKey(const String& key) : _data(key.c_str()) {}
 | |
| 
 | |
|   operator const char*() const { return _data; }
 | |
| 
 | |
|  private:
 | |
|   const char* _data;
 | |
| };
 | |
| }
 |