Releases: bblanchon/ArduinoJson
ArduinoJson 4.5
Changes since v4.4
- 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.
ArduinoJson 5.0 beta 1
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.
ArduinoJson 4.4
Changes since v4.3
- Added
JsonArray::measureLength()
andJsonObject::measureLength()
(issue #75)
ArduinoJson 4.3
ArduinoJson 4.2
ArduinoJson 4.1
Changes compared to 4.0:
- Added DynamicJsonBuffer (issue #19)
Packages:
- ArduinoJson-v4.1.zip for Arduino IDE >=1.0.6 and >=1.5.6
- ArduinoJson-v4.1-old-layout.zip for older versions
ArduinoJson 4.0
Changes compared to 3.4:
- Unified parser and generator API (issue #23)
- Updated library layout, now requires Arduino 1.0.6 or newer
BREAKING CHANGE: API changed significantly, see doc/Migrating to the new API.md
.
Requires Arduino IDE 1.0.6 or above.
ArduinoJson 4.0 beta 1
Changes compared to 3.4:
- Unified parser and generator API (issue #23)
- Updated library layout, now requires Arduino 1.0.6 or newer
BREAKING CHANGE: API changed significantly, see doc/Migrating to the new API.md
.
ArduinoJson 3.4
Changes compared to 3.3:
- Fixed escaped char parsing (issue #16)
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/
ArduinoJson 3.3
Changes compared to 3.2:
- Added indented output for the JSON generator, see example bellow.
- Added
IndentedPrint
, a decorator forPrint
to allow indented output
Example:
JsonOject<2> json;
json["key"] = "value";
json.prettyPrintTo(Serial);
How to install?
To use this library with the Arduino IDE, you need to unzip the attached file into
<path_to_your_sketches>/libraries/