mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.3 KiB
		
	
	
	
	
	
	
	
Arduino JSON: change log
v3.0
- New parser API, see bellow
- Renamed JsonHashTableintoJsonObject
- Added iterators for JsonArrayandJsonObject
Old parser API:
JsonHashTable root = parser.parseHashTable(json);
char*  sensor    = root.getString("sensor");
long   time      = root.getLong("time");
double latitude  = root.getArray("data").getDouble(0);
double longitude = root.getArray("data").getDouble(1);
New parser API:
JsonObject root = parser.parse(json);
char*  sensor    = root["sensor"];
long   time      = root["time"];
double latitude  = root["data"][0];
double longitude = root["data"][1];
v2.1
- Fixed case #include "jsmn.cpp"which caused an error in Linux (issue #6)
- Fixed a buffer overrun in JSON Parser (issue #5)
v2.0
- Added JSON encoding (issue #2)
- Renamed the library ArduinoJsonParserbecomesArduinoJson
Breaking change: you need to add the following line at the top of your program.
using namespace ArduinoJson::Parser;
v1.2
- Fixed error in JSON parser example (issue #1)
v1.1
- Example: changed char* jsonintochar[] jsonso that the bytes are not write protected
- Fixed parsing bug when the JSON contains multi-dimensional arrays
v1.0
Initial release