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 JsonDocument to copyArray() (issue #1255)
  • Added support for enums in as<T>() and is<T>() (issue #1256)
  • Added JsonVariant as an input type for deserializeXxx()
    For example, you can do: deserializeJson(doc2, doc1["payload"])
  • Break the build if using 64-bit integers with ARDUINOJSON_USE_LONG_LONG==0

View version history

How to install

There are several ways to install ArduinoJson, from simpler to more complex:

  1. Use the Arduino Library Manager or equivalent
  2. Download ArduinoJson-v6.15.2.h put it in your project folder
  3. Download ArduinoJson-v6.15.2.zip and extract it in you libraries 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.

Try online