forked from bblanchon/ArduinoJson
1.6 KiB
1.6 KiB
ArduinoJson: change log
HEAD
- Remove
BasicJsonDocument - Remove
StaticJsonDocument - Add abstract
Allocatorclass - Merge
DynamicJsonDocumentwithJsonDocument - Remove
JSON_ARRAY_SIZE(),JSON_OBJECT_SIZE(), andJSON_STRING_SIZE() - Remove
ARDUINOJSON_ENABLE_STRING_DEDUPLICATION(string deduplication cannot be disabled anymore) - Remove
JsonDocument::capacity() - Store the strings in the heap
- Reference-count shared strings
- Always store
serialized("string")by copy (#1915) - Remove the zero-copy mode of
deserializeJson()anddeserializeMsgPack() - Fix double lookup in
to<JsonVariant>() - Fix double call to
size()inserializeMsgPack() - Include
ARDUINOJSON_SLOT_OFFSET_SIZEin the namespace name - Remove
JsonVariant::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 recycled- Show a link to the documentation when user passes an unsupported input type
- Remove
JsonDocument::memoryUsage() - Remove
JsonDocument::garbageCollect() - Add
deserializeJson(JsonVariant, ...)anddeserializeMsgPack(JsonVariant, ...)(#1226) - Call
shrinkToFit()indeserializeJson()anddeserializeMsgPack() serializeJson()andserializeMsgPack()replace the content ofstd::stringandStringinstead of appending to it- Replace
add()withadd<T>()(add(T)is still supported) - Remove
createNestedArray()andcreateNestedObject()(useto<JsonArray>()andto<JsonObject>()instead)