forked from bblanchon/ArduinoJson
37357086e2
After removing the string size from `VariantContent`, `deserializeJson()` and `deserializeMsgPack()` could not support NUL in strings in the zero-copy mode anymore. Instead of adding a complicated warning in the documentation, I thought it was better to remove the zero-copy mode entirely. The zero-copy mode has always been a source of bugs because many users used it without realizing it. Also, the memory savings are smaller now that we deduplicate strings, so this feature should not be missed much.
629 B
629 B
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 enabled 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()