mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added StaticJsonDocument and DynamicJsonDocument.
Removed StaticJsonArray and DynamicJsonArray. Removed StaticJsonObject and DynamicJsonObject. Removed StaticJsonVariant and DynamicJsonVariant.
This commit is contained in:
		
							
								
								
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -6,9 +6,7 @@ HEAD | ||||
|  | ||||
| * Fixed `JsonBuffer::parse()` not respecting nesting limit correctly (issue #693) | ||||
| * Fixed inconsistencies in nesting level counting (PR #695 from Zhenyu Wu) | ||||
| * Added `DynamicJsonArray` and `StaticJsonArray` | ||||
| * Added `DynamicJsonObject` and `StaticJsonObject` | ||||
| * Added `DynamicJsonVariant` and `StaticJsonVariant` | ||||
| * Added `DynamicJsonDocument` and `StaticJsonDocument` | ||||
| * Added `deserializeJson()` | ||||
| * Added `serializeJson()` and `serializeJsonPretty()` | ||||
| * Added `measureJson()` and `measureJsonPretty()` | ||||
| @@ -37,11 +35,12 @@ HEAD | ||||
| > New code: | ||||
| >  | ||||
| > ```c++ | ||||
| > DynamicJsonObject obj; | ||||
| > JsonError error = deserializeJson(obj, json); | ||||
| > DynamicJsonDocument doc; | ||||
| > JsonError error = deserializeJson(doc, json); | ||||
| > if (error) { | ||||
| >  | ||||
| > } | ||||
| > JsonObject& obj = doc.as<JsonObject>(); | ||||
| > ``` | ||||
| >  | ||||
| > #### Serialization | ||||
| @@ -58,9 +57,10 @@ HEAD | ||||
| > New code: | ||||
| >  | ||||
| > ```c++ | ||||
| > DynamicJsonObject obj; | ||||
| > DynamicJsonDocument obj; | ||||
| > JsonObject& obj = doc.to<JsonObject>(); | ||||
| > obj["key"] = "value"; | ||||
| > serializeJson(obj, Serial); | ||||
| > serializeJson(doc, Serial); | ||||
| > ``` | ||||
|  | ||||
| v5.13.1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user