Skip to content

Releases: bblanchon/ArduinoJson

ArduinoJson 6.21.3

23 Jul 15:50
Compare
Choose a tag to compare

Changes

  • Fix compatibility with the Blynk libary (issue #1914)
  • Fix double lookup in to<JsonVariant>()
  • Fix double call to size() in serializeMsgPack()
  • Include ARDUINOJSON_SLOT_OFFSET_SIZE in the namespace name
  • Show a link to the documentation when user passes an unsupported input type

View version history

ArduinoJson 6.21.2

12 Apr 12:35
Compare
Choose a tag to compare

Changes

  • Fix compatibility with the Zephyr Project (issue #1905)
  • Allow using PROGMEM outside of Arduino (issue #1903)
  • Set default for ARDUINOJSON_ENABLE_PROGMEM to 1 on AVR

View version history

ArduinoJson 6.21.1

27 Mar 12:06
Compare
Choose a tag to compare

Changes

  • Double speed of DynamicJsonDocument::garbageCollect()
  • Fix compatibility with GCC 5.2 (issue #1897)

View version history

ArduinoJson 6.21.0

14 Mar 20:06
Compare
Choose a tag to compare

ℹ️ Read the blog post

Changes

  • Drop support for C++98/C++03. Minimum required is C++11.
  • Remove ARDUINOJSON_NAMESPACE; use ArduinoJson instead.
  • Make string support generic (issue #1807)

View version history

ArduinoJson 6.20.1

08 Feb 15:42
Compare
Choose a tag to compare

Changes

  • Remove explicit exclusion of as<char*>() and as<char>() (issue #1860)
    If you try to call them, you'll now get the same error message as any unsupported type.
    You could also add a custom converter for char* and char.

View version history

ArduinoJson 6.20.0

26 Dec 16:40
Compare
Choose a tag to compare

ℹ️ Read the blog post

Changes

  • Add JsonVariant::shallowCopy() (issue #1343)
  • Fix 9.22337e+18 is outside the range of representable values of type 'long'
  • Fix comparison operators for JsonArray, JsonArrayConst, JsonObject, and JsonObjectConst
  • Fix lax parsing of true, false, and null (issue #1781)
  • Remove undocumented accept() functions
  • Rename addElement() to add()
  • Remove getElement(), getOrAddElement(), getMember(), and getOrAddMember()
  • Remove undocumented JsonDocument::data() and JsonDocument::memoryPool()
  • Remove undocumented JsonArrayIterator::internal() and JsonObjectIterator::internal()
  • Rename things in ARDUINOJSON_NAMESPACE to match the public names
  • Add documentation to most public symbols
  • Remove support for naked char (was deprecated since 6.18.0)

BREAKING CHANGES

This release hides JsonVariant's functions that were only intended for internal use.
If you were using them in your programs, you must replace with operator[] and to<JsonVariant>(), like so:

// before
JsonVariant a = variant.getElement(idx);
JsonVariant b = variant.getOrAddElement(idx);
JsonVariant c = variant.getMember(key);
JsonVariant d = variant.getOrAddMember(key);

// after
JsonVariant a = variant[idx];
JsonVariant b = idx < variant.size() ? variant[idx] : variant[idx].to<JsonVariant>();
JsonVariant c = variant[key];
JsonVariant d = variant.containsKey(key) ? variant[key] : variant[key].to<JsonVariant>();

View version history

ArduinoJson 6.19.4

05 Apr 08:57
Compare
Choose a tag to compare

Changes

  • Add ElementProxy::memoryUsage()
  • Add MemberProxy::memoryUsage() (issue #1730)
  • Add implicit conversion from JsonDocument to JsonVariant
  • Fix comparison operators with const JsonDocument&

View version history

ArduinoJson 6.19.3

08 Mar 16:25
Compare
Choose a tag to compare

Changes

  • Fix call of overloaded 'String(const char*, int)' is ambiguous
  • Fix JsonString operator == and != for non-zero-terminated string
  • Fix -Wsign-conversion on GCC 8 (issue #1715)
  • MessagePack: serialize round floats as integers (issue #1718)

View version history

ArduinoJson 6.19.2

14 Feb 08:10
Compare
Choose a tag to compare

Changes

  • Fix cannot convert 'pgm_p' to 'const void*' (issue #1707)

View version history

ArduinoJson 6.19.1

14 Jan 08:09
Compare
Choose a tag to compare

Changes

  • Fix crash when adding an object member in a too small JsonDocument
  • Fix filter not working in zero-copy mode (issue #1697)

View version history