mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			622 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			622 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Arduino JSON library
 | |
|  * Benoit Blanchon 2014 - MIT License
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "JsonObjectBase.h"
 | |
| 
 | |
| template<int N>
 | |
| class JsonHashTable : public JsonObjectBase
 | |
| {
 | |
| public:
 | |
| 
 | |
|     using JsonObjectBase::writeTo;
 | |
| 
 | |
| private:
 | |
| 
 | |
|    /* struct KeyValuePair
 | |
|     {
 | |
|         const char* key;
 | |
|         ObjectContainer value;
 | |
|     };*/
 | |
| 
 | |
|     virtual void writeTo(StringBuilder& sb)
 | |
|     {
 | |
|         sb.append("{");
 | |
| 
 | |
|         /*for (int i = 0; i < itemCount; i++)
 | |
|         {
 | |
|             if (i>0) sb.append(",");
 | |
|             writeObjectTo(items[i], sb);
 | |
|         }*/
 | |
| 
 | |
|         sb.append("}");
 | |
|     }
 | |
| };
 | |
| 
 |