Skip to content

ArduinoJson 5.13.0

Compare
Choose a tag to compare
@bblanchon bblanchon released this 19 Jan 14:43

Changes since 5.12.0

  • Changed the rules of string duplication (issue #658)
  • RawJson() accepts any kind of string and obeys to the same rules for duplication
  • Changed the return type of strdup() to const char* to prevent double duplication
  • Marked strdup() as deprecated

New rules for string duplication

type duplication
const char* no
char* no yes
String yes
std::string yes
const __FlashStringHelper* yes

These new rules make JsonBuffer::strdup() useless.

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

Note: ArduinoJson-v5.13.0.h are ArduinoJson-v5.13.0.hpp are almost identical; the difference is that the .hpp keeps everything in the ArduinoJson namespace.

ℹ️ The complete documentation is available on arduinojson.org

Try online