ArduinoJson 6.15.2 * 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 `enum`s in `as<T>()` and `is<T>()` (issue #1256) * Added `JsonVariant` as an input type for `deserializeXxx()`
6.15.1
Changes since- 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
tocopyArray()
(issue #1255) - Added support for
enum
s inas<T>()
andis<T>()
(issue #1256) - Added
JsonVariant
as an input type fordeserializeXxx()
For example, you can do:deserializeJson(doc2, doc1["payload"])
- Break the build if using 64-bit integers with ARDUINOJSON_USE_LONG_LONG==0
How to install
There are several ways to install ArduinoJson, from simpler to more complex:
- Use the Arduino Library Manager or equivalent
- Download
ArduinoJson-v6.15.2.h
put it in your project folder - Download
ArduinoJson-v6.15.2.zip
and extract it in youlibraries
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.