ArduinoJson 5.13.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
5.12.0
Changes since- 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()
toconst char*
to prevent double duplication - Marked
strdup()
as deprecated
New rules for string duplication
type duplication const char* no char* noyesString yes std::string yes const __FlashStringHelper* yes These new rules make
JsonBuffer::strdup()
useless.
How to install
There are several ways to install ArduinoJson, from simpler to more complex:
- Use the Arduino Library Manager
- Download
ArduinoJson-v5.13.0.h
put it in your project folder - Download
ArduinoJson-v5.13.0.zip
and extract it in youlibraries
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.