📟 JSON library for Arduino and embedded C++. Simple and efficient.
BasicJsonDocument
StaticJsonDocument
Allocator
classDynamicJsonDocument
with JsonDocument
JSON_ARRAY_SIZE()
, JSON_OBJECT_SIZE()
, and JSON_STRING_SIZE()
ARDUINOJSON_ENABLE_STRING_DEDUPLICATION
(string deduplication cannot be disabled anymore)JsonDocument::capacity()
serialized("string")
by copy (#1915)deserializeJson()
and deserializeMsgPack()
to<JsonVariant>()
size()
in serializeMsgPack()
ARDUINOJSON_SLOT_OFFSET_SIZE
in the namespace nameJsonVariant::shallowCopy()
JsonDocument
's capacity grows as needed, no need to pass it to the constructor anymoreJsonDocument
's allocator is not monotonic anymore, removed values get recycledJsonDocument::memoryUsage()
JsonDocument::garbageCollect()
deserializeJson(JsonVariant, ...)
and deserializeMsgPack(JsonVariant, ...)
(#1226)shrinkToFit()
in deserializeJson()
and deserializeMsgPack()
serializeJson()
and serializeMsgPack()
replace the content of std::string
and String
instead of appending to itadd()
with add<T>()
(add(T)
is still supported)createNestedArray()
and createNestedObject()
(use to<JsonArray>()
and to<JsonObject>()
instead)