mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	RawJson() accepts any kind of string and obeys to duplication rules
				
					
				
			This commit is contained in:
		| @@ -40,6 +40,9 @@ void setup() { | ||||
|   // WARNING: the content of the String will be duplicated in the JsonBuffer. | ||||
|   root["sensor"] = sensor; | ||||
|  | ||||
|   // It works with RawJson too: | ||||
|   root["sensor"] = RawJson(sensor); | ||||
|  | ||||
|   // You can also concatenate strings | ||||
|   // WARNING: the content of the String will be duplicated in the JsonBuffer. | ||||
|   root[String("sen") + "sor"] = String("gp") + "s"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user