ArduinoJson v6.14.0 Release Notes

Release Date: 2020-01-16 // over 1 year ago
  • Looking for a human-readable version?
    ๐Ÿฑ > ๐Ÿ“ฐ Read the article on arduinojson.org

    ๐Ÿš€ Changes since 6.13.0

    • โž• Added BasicJsonDocument::shrinkToFit()
    • โž• Added support of uint8_t for serializeJson(), serializeJsonPretty(), and serializeMsgPack() (issue #1142)
    • Added ARDUINOJSON_ENABLE_COMMENTS to enable support for comments (defaults to 0)
    • ๐Ÿ‘ Auto enable support for std::string and std::stream on modern compilers (issue #1156)
      (No need to define ARDUINOJSON_ENABLE_STD_STRING and ARDUINOJSON_ENABLE_STD_STREAM anymore)
    • ๐Ÿ‘Œ Improved decoding of UTF-16 surrogate pairs (PR #1157 by @kaysievers)
      (ArduinoJson now produces standard UTF-8 instead of CESU-8)
    • โž• Added measureJson, measureJsonPretty, and measureMsgPack to keywords.txt
      (This file is used for syntax highlighting in the Arduino IDE)
    • ๐Ÿ›  Fixed variant.is<nullptr_t>()
    • ๐Ÿ›  Fixed value returned by serializeJson(), serializeJsonPretty(), and serializeMsgPack() when writing to a String
    • ๐Ÿ‘Œ Improved speed of serializeJson(), serializeJsonPretty(), and serializeMsgPack() when writing to a String

    ๐Ÿฑ > ### BREAKING CHANGES โš ๏ธ

    0๏ธโƒฃ > Support for comments in input is now optional and disabled by default.

    If you need support for comments, you must defined ARDUINOJSON_ENABLE_COMMENTS to 1; otherwise, you'll receive InvalidInput errors.

    define ARDUINOJSON_ENABLE_COMMENTS 1#include <ArduinoJson.h>

    View version history

    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.14.0.h put it in your project folder
    3. Download ArduinoJson-v6.14.0.zip and extract it in you libraries folder

    Note: ArduinoJson-v6.14.0.h and ArduinoJson-v6.14.0.hpp are almost identical; the difference is that the .hpp keeps everything in the ArduinoJson namespace.

    Try online