All Versions
80
Latest Version
Avg Release Cycle
28 days
Latest Release
109 days ago

Changelog History
Page 1

  • v6.17.2

    November 14, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.17.1

    • ๐Ÿ›  Fixed invalid conversion error in operator|(JsonVariant, char*) (issue #1432)
    • Changed the default value of ARDUINOJSON_ENABLE_PROGMEM (issue #1433).
      It now checks that the pgm_read_XXX macros are defined before enabling PROGMEM.

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.17.2.h put it in your project folder
    3. Download ArduinoJson-v6.17.2.zip and extract it into you libraries folder

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

    Try online

  • v6.17.1

    November 07, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.17.0

    • ๐Ÿ›  Fixed error ambiguous overload for 'operator|' (issue #1411)
    • ๐Ÿ›  Fixed operator|(MemberProxy, JsonObject) (issue #1415)
    • ๐Ÿ‘ Allowed more than 32767 values in non-embedded mode (issue #1414)

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.17.1.h put it in your project folder
    3. Download ArduinoJson-v6.17.1.zip and extract it into you libraries folder

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

    Try online

  • v6.17.0

    October 19, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.16.1

    • โž• Added a build failure when nullptr is defined as a macro (issue #1355)
    • โž• Added JsonDocument::overflowed() which tells if the memory pool was too small (issue #1358)
    • โž• Added DeserializationError::EmptyInput which tells if the input was empty
    • Added DeserializationError::f_str() which returns a const __FlashStringHelper* (issue #846)
    • โž• Added operator|(JsonVariantConst, JsonVariantConst)
    • โž• Added filtering for MessagePack (issue #1298, PR #1394 by Luca Passarella)
    • ๐Ÿšš Moved float convertion tables to PROGMEM
    • ๐Ÿ›  Fixed JsonVariant::set((char*)0) which returned false instead of true (issue #1368)
    • ๐Ÿ›  Fixed error No such file or directory #include <WString.h> (issue #1381)

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.17.0.h put it in your project folder
    3. Download ArduinoJson-v6.17.0.zip and extract it in you libraries folder

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

    Try online

  • v6.16.1

    August 04, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.16.0

    • ๐Ÿ›  Fixed deserializeJson() that stopped reading after {} (issue #1335)

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.16.1.h put it in your project folder
    3. Download ArduinoJson-v6.16.1.zip and extract it in you libraries folder

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

    Try online

  • v6.16.0

    August 01, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.15.2

    • โž• Added comparisons (>, >=, ==, !=, <, and <=) between JsonVariants
    • โž• Added string deduplication (issue #1303)
    • โž• Added JsonString::operator!=
    • Set ARDUINOJSON_DECODE_UNICODE to 1 by default
    • ๐Ÿ›  Fixed copyArray() not working with String, ElementProxy, and MemberProxy
    • ๐Ÿ›  Fixed error getOrAddElement is not a member of ElementProxy (issue #1311)
    • ๐Ÿ›  Fixed excessive stack usage when compiled with -Og (issues #1210 and #1314)
    • ๐Ÿ›  Fixed Warning[Pa093]: implicit conversion from floating point to integer on IAR compiler (PR #1328 by @stawiski)

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.16.0.h put it in your project folder
    3. Download ArduinoJson-v6.16.0.zip and extract it in you libraries folder

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

    Try online

  • v6.15.2

    May 15, 2020

    ๐Ÿš€ Changes since 6.15.1

    • ๐Ÿ— CMake: don't build tests when imported in another project
    • CMake: made project arch-independent
    • ๐Ÿ›  Visual Studio: fixed error C2766 with flag /Zc:__cplusplus (issue #1250)
    • โž• Added support for JsonDocument to copyArray() (issue #1255)
    • โž• Added support for enums in as<T>() and is<T>() (issue #1256)
    • โž• Added JsonVariant as an input type for deserializeXxx()
      ๐Ÿ›ฐ For example, you can do: deserializeJson(doc2, doc1["payload"])
    • ๐Ÿ‘‰ Break the build if using 64-bit integers with ARDUINOJSON_USE_LONG_LONG==0

    View version history

    How to install

    There are several ways to install ArduinoJson, from simpler to more complex:

    1. Use the Arduino Library Manager or equivalent
    2. Download ArduinoJson-v6.15.2.h put it in your project folder
    3. Download ArduinoJson-v6.15.2.zip and extract it in you libraries folder

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

    Try online

  • v6.15.1

    April 08, 2020

    ๐Ÿš€ Changes since 6.15.0

    • ๐Ÿ›  Fixed "maybe-uninitialized" warning (issue #1217)
    • ๐Ÿ›  Fixed "statement is unreachable" warning on IAR (issue #1233)
    • ๐Ÿ›  Fixed "pointless integer comparison" warning on IAR (issue #1233)
    • โž• Added CMake "install" target (issue #1209)
    • Disabled alignment on AVR (issue #1231)

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

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

    Try online

  • v6.15.0

    March 22, 2020

    ๐Ÿฑ ๐Ÿ“ฐ Read the complete article on arduinojson.org

    ๐Ÿš€ Changes since 6.14.1

    • โž• Added DeserializationOption::Filter (issue #959)
    • โž• Added example JsonFilterExample.ino
    • ๐Ÿ”„ Changed the array subscript operator to automatically add missing elements
    • ๐Ÿ›  Fixed "deprecated-copy" warning on GCC 9 (fixes #1184)
    • ๐Ÿ›  Fixed MemberProxy::set(char[]) not duplicating the string (issue #1191)
    • ๐Ÿ›  Fixed enums serialized as booleans (issue #1197)
    • ๐Ÿ›  Fixed incorrect string comparison on some platforms (issue #1198)
    • โž• Added move-constructor and move-assignment to BasicJsonDocument
    • โž• Added BasicJsonDocument::garbageCollect() (issue #1195)
    • โž• Added StaticJsonDocument::garbageCollect()
    • ๐Ÿ”„ Changed copy-constructor of BasicJsonDocument to preserve the capacity of the source.
    • โœ‚ Removed copy-constructor of JsonDocument (issue #1189)

    View version history

    ๐Ÿ’ฅ BREAKING CHANGES โš ๏ธ

    Copy-constructor of BasicJsonDocument

    In previous versions, the copy constructor of BasicJsonDocument looked at the source's memoryUsage() to choose its capacity.
    Now, the copy constructor of BasicJsonDocument uses the same capacity as the source.
    Example:

    DynamicJsonDocument doc1(64); doc1.set(String("example")); DynamicJsonDocument doc2 = doc1; Serial.print(doc2.capacity()); // 8 with ArduinoJson 6.14// 64 with ArduinoJson 6.15
    

    ๐Ÿšš I made this change to get consistent results between copy-constructor and move-constructor, and whether RVO applies or not.
    โšก๏ธ If you use the copy-constructor to optimize your documents, you can use garbageCollect() or shrinkToFit() instead.

    Copy-constructor of JsonDocument

    In previous versions, it was possible to create a function that take a JsonDocument by value.

    void myFunction(JsonDocument doc) {}
    

    This function gives the wrong clues because it doesn't receive a copy of the JsonDocument, only a sliced version.
    It worked because the copy constructor copied the internal pointers, but it was an accident.
    From now, if you need to pass a JsonDocument to a function, you must use a reference:

    void myFunction(JsonDocument& doc) {}
    

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

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

    Try online

  • v6.14.1

    January 27, 2020

    ๐Ÿš€ Changes since 6.14.0

    • ๐Ÿ›  Fixed regression in UTF16 decoding (issue #1173)
    • ๐Ÿ›  Fixed containsKey() on JsonVariantConst
    • โž• Added getElement() and getMember() to JsonVariantConst

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

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

    Try online

  • v6.14.0

    January 16, 2020

    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