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()`
Changes since 6.15.1
- 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
JsonDocumenttocopyArray()(issue #1255) - Added support for
enums inas<T>()andis<T>()(issue #1256) - Added
JsonVariantas 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.hput it in your project folder - Download
ArduinoJson-v6.15.2.zipand extract it in youlibrariesfolder
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.