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
References
Used by
GoogleCast Library
Hue Emulator Library
IO Control Library
Basic RS485 Sample
Fan Controller Sample
RingTone Player Sample
Yeelight Library
Basic Web Skeleton Sample
HttpClient Instapush Sample
AJAX Http Server Sample
HttpServer Config Network Sample
MeteoControl Sample
SoC support
esp32
esp32c2
esp32c3
esp32s2
esp32s3
esp8266
host
rp2040
rp2350