Added support of String class (issue #55, #56, #70, #77)

This commit is contained in:
Benoit Blanchon
2015-05-25 15:38:58 +02:00
parent 756c279cdc
commit 1b5be892b9
22 changed files with 351 additions and 119 deletions

View File

@@ -1,9 +1,10 @@
ArduinoJson: change log
=======================
v5.0 (currently in development)
v5.0 (currently under development)
----
* Added support of `String` class (issue #55, #56, #70, #77)
* Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators.
**BREAKING CHANGES**:
@@ -11,6 +12,13 @@ v5.0 (currently in development)
- `JsonArray::at()` and `JsonObject::at()` were renamed to `get()`
- Number of digits of floating point value are now set with `double_with_n_digits()`
**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.
Compared to static allocation, it compiles to a bigger, slower program, and is less predicate.
You certainly don't want that in an embedded environment!
v4.4
----
@@ -143,4 +151,4 @@ v1.1
v1.0
----
Initial release
Initial release