Would be great to see a reference implementation of doing something as typical with cloning as:
- Deserialize an existing object from a buffer using
clone_as_root;
- Update a field in root object, or a field in child object or an array (add/remove elements);
- Assemble everything back together and serialize it back into a buffer.
While making sure we're not creating any garbage data in the buffer along the way.