2015-05-23 15:32:50 +02:00
ArduinoJson: change log
=======================
2015-08-24 15:20:40 +02:00
v5.0.1
------
* Fixed compilation with Arduino 1.0.6 (issue #99 )
2015-08-20 15:15:59 +02:00
v5.0.0
------
2015-05-23 15:32:50 +02:00
2015-07-25 15:38:12 +02:00
* Added support of `String` class (issues #55 , #56 , #70 , #77 )
* Added `JsonBuffer::strdup()` to make a copy of a string (issues #10 , #57 )
* Implicitly call `strdup()` for `String` but not for `char*` (issues #84 , #87 )
2015-07-10 22:11:26 +02:00
* Added support of non standard JSON input (issue #44 )
2015-07-27 22:16:42 +02:00
* Added support of comments in JSON input (issue #88 )
2015-08-10 17:22:22 +02:00
* Added implicit cast between numerical types (issues #64 , #69 , #93 )
* Added ability to read number values as string (issue #90 )
2015-07-25 15:38:12 +02:00
* Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators (issue #66 )
2015-05-31 14:42:09 +02:00
* Switched to new the library layout (requires Arduino 1.0.6 or above)
2015-05-23 15:32:50 +02:00
**BREAKING CHANGES** :
- `JsonObject::add()` was renamed to `set()`
- `JsonArray::at()` and `JsonObject::at()` were renamed to `get()`
- Number of digits of floating point value are now set with `double_with_n_digits()`
2014-07-15 13:50:49 +02:00
2015-05-25 15:38:58 +02:00
**Personal note about the `String` class** :
Support of the `String` class has been added to the library because many people use it in their programs.
However, you should not see this as an invitation to use the `String` class.
The `String` class is **bad** because it uses dynamic memory allocation.
2015-05-31 14:42:09 +02:00
Compared to static allocation, it compiles to a bigger, slower program, and is less predictable.
2015-05-25 15:38:58 +02:00
You certainly don't want that in an embedded environment!
2015-08-01 16:31:59 +02:00
v4.6
----
* Fixed segmentation fault in `DynamicJsonBuffer` when memory allocation fails (issue #92 )
2015-07-10 22:11:26 +02:00
v4.5
----
* Fixed buffer overflow when input contains a backslash followed by a terminator (issue #81 )
**Upgrading is recommended** since previous versions contain a potential security risk.
Special thanks to [Giancarlo Canales Barreto ](https://github.com/gcanalesb ) for finding this nasty bug.
2015-05-09 16:53:48 +02:00
v4.4
----
* Added `JsonArray::measureLength()` and `JsonObject::measureLength()` (issue #75 )
2015-05-03 15:49:44 +02:00
v4.3
2015-04-18 15:37:15 +02:00
----
2015-05-02 15:16:18 +02:00
* Added `JsonArray::removeAt()` to remove an element of an array (issue #58 )
2015-04-18 15:37:15 +02:00
* Fixed stack-overflow in `DynamicJsonBuffer` when parsing huge JSON files (issue #65 )
2015-04-27 16:01:05 +02:00
* Fixed wrong return value of `parseArray()` and `parseObject()` when allocation fails (issue #68 )
2015-04-18 15:37:15 +02:00
2015-02-07 20:49:05 +01:00
v4.2
2015-02-01 20:59:31 +01:00
----
2015-02-07 20:49:05 +01:00
* Switched back to old library layout (issues #39 , #43 and #45 )
2015-02-01 20:59:31 +01:00
* Removed global new operator overload (issue #40 , #45 and #46 )
* Added an example with EthernetServer
2014-12-20 15:45:09 +01:00
v4.1
----
2014-12-21 15:25:42 +01:00
* Added DynamicJsonBuffer (issue #19 )
2014-12-20 15:45:09 +01:00
2014-11-11 14:11:49 +01:00
v4.0
----
* Unified parser and generator API (issue #23 )
2014-11-11 18:34:04 +01:00
* Updated library layout, now requires Arduino 1.0.6 or newer
2014-11-11 14:11:49 +01:00
2014-11-29 17:00:38 +01:00
**BREAKING CHANGE** : API changed significantly, see [Migrating code to the new API ](https://github.com/bblanchon/ArduinoJson/wiki/Migrating-code-to-the-new-API ).
2014-11-11 14:11:49 +01:00
2014-09-09 21:32:27 +02:00
v3.4
----
* Fixed escaped char parsing (issue #16 )
2014-12-20 15:45:09 +01:00
2014-09-09 21:32:27 +02:00
2014-09-01 21:14:09 +02:00
v3.3
----
2014-09-09 21:32:27 +02:00
* Added indented output for the JSON generator (issue #11 ), see example bellow.
2014-09-01 21:14:09 +02:00
* Added `IndentedPrint` , a decorator for `Print` to allow indented output
Example:
JsonOject<2> json;
json["key"] = "value";
json.prettyPrintTo(Serial);
2014-08-04 14:59:09 +02:00
v3.2
----
* Fixed a bug when adding nested object in `JsonArray` (bug introduced in v3.1).
2014-08-03 13:18:59 +02:00
v3.1
----
2014-07-31 20:28:52 +02:00
2014-08-03 15:54:16 +02:00
* Calling `Generator::JsonObject::add()` twice with the same `key` now replaces the `value`
* Added `Generator::JsonObject::operator[]` , see bellow the new API
2014-09-09 21:32:27 +02:00
* Added `Generator::JsonObject::remove()` (issue #9 )
2014-07-31 20:28:52 +02:00
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;
2014-07-19 15:23:40 +02:00
v3.0
----
* New parser API, see bellow
* Renamed `JsonHashTable` into `JsonObject`
2014-09-09 21:32:27 +02:00
* Added iterators for `JsonArray` and `JsonObject` (issue #4 )
2014-07-19 15:23:40 +02:00
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];
2014-07-15 20:04:21 +02:00
v2.1
----
2014-07-15 13:50:49 +02:00
* Fixed case `#include "jsmn.cpp"` which caused an error in Linux (issue #6 )
* Fixed a buffer overrun in JSON Parser (issue #5 )
2014-07-02 13:59:13 +02:00
v2.0
----
2014-07-15 13:50:49 +02:00
* Added JSON encoding (issue #2 )
2014-07-09 19:50:44 +02:00
* Renamed the library `ArduinoJsonParser` becomes `ArduinoJson`
2014-07-04 14:42:57 +02:00
**Breaking change** : you need to add the following line at the top of your program.
using namespace ArduinoJson::Parser;
2014-02-27 13:54:34 +01:00
2014-03-03 14:02:34 +01:00
v1.2
----
2014-07-15 13:50:49 +02:00
* Fixed error in JSON parser example (issue #1 )
2014-03-03 14:02:34 +01:00
2014-02-27 19:51:24 +01:00
v1.1
2014-02-27 13:54:34 +01:00
----
2014-03-03 14:02:34 +01:00
* Example: changed `char* json` into `char[] json` so that the bytes are not write protected
2014-02-27 13:54:34 +01:00
* Fixed parsing bug when the JSON contains multi-dimensional arrays
v1.0
----
2015-05-25 15:38:58 +02:00
Initial release