mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			361 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			361 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // ArduinoJson - https://arduinojson.org
 | |
| // Copyright Benoit Blanchon 2014-2021
 | |
| // MIT License
 | |
| 
 | |
| #include <ArduinoJson.h>
 | |
| 
 | |
| extern "C" void app_main() {
 | |
|   char buffer[256];
 | |
|   StaticJsonDocument<200> doc;
 | |
| 
 | |
|   doc["hello"] = "world";
 | |
|   serializeJson(doc, buffer);
 | |
|   deserializeJson(doc, buffer);
 | |
|   serializeMsgPack(doc, buffer);
 | |
|   deserializeMsgPack(doc, buffer);
 | |
| }
 |