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:
		| @@ -37,6 +37,9 @@ void setup() { | ||||
|   // JsonBuffer. | ||||
|   root["sensor"] = F("gps"); | ||||
|  | ||||
|   // It works with RawJson too: | ||||
|   root["sensor"] = RawJson(F("\"gps\"")); | ||||
|  | ||||
|   // You can compare the content of a JsonVariant to a Flash String | ||||
|   if (root["sensor"] == F("gps")) { | ||||
|     // ... | ||||
|   | ||||
		Reference in New Issue
	
	Block a user