mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Updated changelog
This commit is contained in:
		
							
								
								
									
										20
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,6 +1,26 @@ | ||||
| Arduino JSON: change log | ||||
| ======================== | ||||
|  | ||||
| master | ||||
| ------ | ||||
|  | ||||
| * Calling `Generator::JsonObject.add()` twice with the same `key` now replaces the `value` | ||||
| * Added `Generator::JsonObject.operator[]`, see bellow the new API | ||||
|  | ||||
| Old generator API: | ||||
|  | ||||
| 	JsonObject<3> root;  | ||||
|     root.add("sensor", "gps"); | ||||
|     root.add("time", 1351824120); | ||||
|     root.add("data", array); | ||||
|  | ||||
| New generator API: | ||||
|  | ||||
| 	JsonObject<3> root;  | ||||
|     root["sensor"] = "gps"; | ||||
|     root["time"] = 1351824120; | ||||
|     root["data"] = array; | ||||
|  | ||||
| v3.0 | ||||
| ---- | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user