ArduinoJson Version 6

Current version is 6.12.0.

If you’re upgrading from version 5, some changes will be required to your code. See the Version 6 Migration Guide for details.

Some methods of JsonVariant have been removed, replacements are:

asString() -> as<char*>() or as<const char*>. Note that as<String> produces a serialized version, so you’ll get “null” instead of an empty/invalid result String.

asArray() -> as<JsonArray>()

asObject() -> as<JsonObject>()

There are also some useful helper functions available in the Json namespace. See Libraries/ArduinoJson6/include/ArduinoJson.h.

Sming definitions

JsonObjectStream

References

Used by

SoC support

  • esp32

  • esp32c3

  • esp32s2

  • esp32s3

  • esp8266

  • host

  • rp2040

Submodule: ArduinoJson