'Overwrite everything in this document with the JSON-encoded
document.
json (JSON-data) :
A JSON-encoded document to overwrite this one.
Returns:
None'

def replace_with_json(self, json):

    replacement = self.from_json(json)
    replacement._destructively_move(self)
