ArduinoJson v6.14.0 Release Notes
Release Date: 2020-01-16 // about 4 years 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
forserializeJson()
,serializeJsonPretty()
, andserializeMsgPack()
(issue #1142) - Added
ARDUINOJSON_ENABLE_COMMENTS
to enable support for comments (defaults to 0) - ๐ Auto enable support for
std::string
andstd::stream
on modern compilers (issue #1156)
(No need to defineARDUINOJSON_ENABLE_STD_STRING
andARDUINOJSON_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
, andmeasureMsgPack
tokeywords.txt
(This file is used for syntax highlighting in the Arduino IDE) - ๐ Fixed
variant.is<nullptr_t>()
- ๐ Fixed value returned by
serializeJson()
,serializeJsonPretty()
, andserializeMsgPack()
when writing to aString
- ๐ Improved speed of
serializeJson()
,serializeJsonPretty()
, andserializeMsgPack()
when writing to aString
๐ฑ > ### 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
to1
; otherwise, you'll receiveInvalidInput
errors.define ARDUINOJSON_ENABLE_COMMENTS 1#include <ArduinoJson.h>
How to install
There are several ways to install ArduinoJson, from simpler to more complex:
- Use the Arduino Library Manager
- Download
ArduinoJson-v6.14.0.h
put it in your project folder - Download
ArduinoJson-v6.14.0.zip
and extract it in youlibraries
folder
Note:
ArduinoJson-v6.14.0.h
andArduinoJson-v6.14.0.hpp
are almost identical; the difference is that the.hpp
keeps everything in theArduinoJson
namespace.Try online
- โ Added