ArduinoJson 5.0 beta 1 * Added support of `String` class (issue #55, #56, #70, #77) * Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators * Switched to new library layout (requires Arduino 1.0.6 or above)
Changes since v4.4
- Added support of
String
class (issue #55, #56, #70, #77) - Redesigned
JsonVariant
to leverage converting constructors instead of assignment operators - Switched to new library layout (requires Arduino 1.0.6 or above)
BREAKING CHANGES:
-
JsonObject::add()
was renamed toset()
-
JsonArray::at()
andJsonObject::at()
were renamed toget()
- 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 predicatable.
You certainly don't want that in an embedded environment!
CAUTION: the documentation on the wiki hasn't been updated yet.