ArduinoJson 6.2.0-beta * Disabled lazy number deserialization (issue #772) * Improved float serialization when `-fsingle-precision-constant` is used * Renamed function `RawJson()` to `serialized()` * `serializeMsgPack()` now supports values marked with `serialized()`
⚠ ️
Special note ArduinoJson 6 requires updating code written for version 5. Visit arduinojson.org for more information.
6.1.0-beta
Changes since- Disabled lazy number deserialization (issue #772)
- Improved float serialization when
-fsingle-precision-constant
is used - Renamed function
RawJson()
toserialized()
-
serializeMsgPack()
now supports values marked withserialized()
⚠ ️
BREAKING CHANGES Non quoted strings
Non quoted strings are now forbidden in values, but they are still allowed in keys.
For example, {key:"value"}
is accepted, but {key:value}
is not.
Preformatted values
Old code:
object["values"] = RawJson("[1,2,3,4]");
New code:
object["values"] = serialized("[1,2,3,4]");
How to install
There are several ways to install ArduinoJson, from simpler to more complex:
- Use the Arduino Library Manager
- Download
ArduinoJson-v6.2.0-beta.h
put it in your project folder - Download
ArduinoJson-v6.2.0-beta.zip
and extract it in youlibraries
folder
Note: ArduinoJson-v6.2.0-beta.h
are ArduinoJson-v6.2.0-beta.hpp
are almost identical; the difference is that the .hpp
keeps everything in the ArduinoJson
namespace.