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.

Changes since 6.1.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()

View version history

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:

  1. Use the Arduino Library Manager
  2. Download ArduinoJson-v6.2.0-beta.h put it in your project folder
  3. Download ArduinoJson-v6.2.0-beta.zip and extract it in you libraries 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.

Try online