mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed deserializeJson() that stopped reading after {} (fixes #1335)
				
					
				
			This commit is contained in:
		| @@ -290,4 +290,10 @@ TEST_CASE("deserialize JSON object") { | ||||
|     REQUIRE(obj.size() == 0); | ||||
|     REQUIRE(doc.memoryUsage() == JSON_OBJECT_SIZE(0)); | ||||
|   } | ||||
|  | ||||
|   SECTION("Issue #1335") { | ||||
|     std::string json("{\"a\":{},\"b\":{}}"); | ||||
|     deserializeJson(doc, json); | ||||
|     CHECK(doc.as<std::string>() == json); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user