mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			696 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			696 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright Benoit Blanchon 2014-2015
 | |
| // MIT License
 | |
| //
 | |
| // Arduino JSON library
 | |
| // https://github.com/bblanchon/ArduinoJson
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace ArduinoJson {
 | |
| 
 | |
| // Forward declarations
 | |
| class JsonArray;
 | |
| class JsonObject;
 | |
| 
 | |
| namespace Internals {
 | |
| 
 | |
| // A union that defines the actual content of a JsonVariant.
 | |
| // The enum JsonVariantType determines which member is in use.
 | |
| union JsonVariantContent {
 | |
|   double asDouble;       // asDouble is also used for float
 | |
|   long asLong;           // asLong is also used for bool, char, short and int
 | |
|   const char* asString;  // asString can be null
 | |
|   JsonArray* asArray;    // asArray cannot be null
 | |
|   JsonObject* asObject;  // asObject cannot be null
 | |
| };
 | |
| }
 | |
| }
 |