code: def replace_with_json(self, json):
          ''' Overwrite everything in this document with the JSON-encoded
          document.
  
          json (JSON-data) :
              A JSON-encoded document to overwrite this one.
  
          Returns:
              None
  
          '''
          replacement = self.from_json(json)
          replacement._destructively_move(selff replace_with_json(self, json):
          ''' Overwrite everything in this document with the JSON-encoded
          document.
  
          json (JSON-data) :
              A JSON-encoded document to overwrite this one.
  
          Returns:
              None
  
          '''
          replacement = self.from_json(json)
          replacement._destructively_move(self)
docs: Overwrite everything in this document with the JSON-encoded
          document.
  
          json (JSON-data) :
              A JSON-encoded document to overwrite this one.
  
          Returns:
              None