mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Test nested objects
This commit is contained in:
		| @@ -54,6 +54,19 @@ namespace JsonGeneratorTests | ||||
|                 "}"); | ||||
|         } | ||||
|  | ||||
|         TEST_METHOD(NestedObjects) | ||||
|         { | ||||
|             whenInputIs("{\"key1\":{\"a\":1},\"key2\":{\"b\":2}}"); | ||||
|             outputMustBe( | ||||
|                 "{\n" | ||||
|                 " \"key1\": {\n" | ||||
|                 "  \"a\": 1\n" | ||||
|                 " },\n" | ||||
|                 " \"key2\": {\n" | ||||
|                 "  \"b\": 2\n" | ||||
|                 " }\n" | ||||
|                 "}"); | ||||
|         } | ||||
|  | ||||
|     private: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user