mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			453 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			453 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "JsonHashTable.h"
 | |
| 
 | |
| using namespace ArduinoJson::Generator;
 | |
| 
 | |
| size_t JsonHashTableBase::printTo(Print& p) const
 | |
| {
 | |
|     size_t n = 0;
 | |
| 
 | |
|     n += p.write('{');
 | |
| 
 | |
|     for (int i = 0; i < count; i++)
 | |
|     {
 | |
|         if (i > 0)
 | |
|         {
 | |
|             n += p.write(',');
 | |
|         }
 | |
| 
 | |
|         n += items[i].key.printTo(p);
 | |
|         n += p.write(':');
 | |
|         n += items[i].value.printTo(p);
 | |
|     }
 | |
| 
 | |
|     n += p.write('}');
 | |
| 
 | |
|     return n;
 | |
| } |