Releases: bblanchon/ArduinoJson
ArduinoJson 5.0.5
Changes since v5.0.4
- Add overload
JsonObjectSuscript::set(value, decimals)
(issue #143) - Use
float
instead ofdouble
to reduce the size ofJsonVariant
(issue #134)
Which package to download?
If you are running the official Arduino IDE, download ArduinoJson-v5.0.5.zip
.
You can also use the library manager from the IDE, it will download the library for you.
If you are running an alternative IDE (like Energia or Stino), download ArduinoJson-v5.0.5-old-layout.zip
This package has the legacy library layout that was supported by older versions of the Arduino IDE.
ArduinoJson 5.0.4
Changes since v5.0.3
- Fixed ambiguous overload with
JsonArraySubscript
andJsonObjectSubscript
(issue #122)
Which package to download?
If you are running the official Arduino IDE, download ArduinoJson-v5.0.4.zip
.
You can also use the library manager from the IDE, it will download the library for you.
If you are running an alternative IDE (like Energia), download ArduinoJson-v5.0.4-old-layout.zip
This package has the legacy library layout that was supported by older versions of the Arduino IDE.
ArduinoJson 5.0.3
Changes since v5.0.2
- Fixed
printTo(String)
which wrote numbers instead of strings (issue #120) - Fixed return type of
JsonArray::is<T>()
and some others (issue #121)
Which package to download?
If you are running the official Arduino IDE, download ArduinoJson-v5.0.3.zip
.
You can also use the library manager from the IDE, it will download the library for you.
If you are running an alternative IDE (like Energia), download ArduinoJson-v5.0.3-old-layout.zip
This package has the legacy library layout that was supported by older versions of the Arduino IDE.
ArduinoJson 5.0.2
Changes since v5.0.1
- Fixed segmentation fault in
parseObject(String)
andparseArray(String)
, when the
StaticJsonBuffer
is too small to hold a copy of the string - Fixed Clang warning "register specifier is deprecated" (issue #102)
- Fixed GCC warning "declaration shadows a member" (issue #103)
- Fixed memory alignment, which made ESP8266 crash (issue #104)
- Fixed compilation on Visual Studio 2010 and 2012 (issue #107)
Energia: you need to use the alternative package named ArduinoJson-v5.0.2-old-layout.zip
ArduinoJson 5.0.1
Changes since v5.0.0
- Fixed compilation with Arduino 1.0.6 (issue #99)
ArduinoJson 5.0.0
Changes since v4.6.1
- 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()
forString
but not forchar*
(issues #84, #87) - Added support of non standard JSON input (issue #44)
- Added support of comments in JSON input (issue #88)
- Added implicit cast between numerical types (issues #64, #69, #93)
- Added ability to read number values as string (issue #90)
- Redesigned
JsonVariant
to leverage converting constructors instead of assignment operators (issue #66) - Switched to new the 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 predictable.
You certainly don't want that in an embedded environment!
ArduinoJson 5.0 beta 5
ArduinoJson 4.6.1
Changes since v4.5
- Fixed segmentation fault in
DynamicJsonBuffer
when memory allocation fails (issue #92)
ArduinoJson 5.0 beta 4
Changes since v5.0-beta-3
- Added support of comments in JSON input (issue #88)