code: def dump(self, key):
      
      
  
      try:
        
        obj = self.get(key)
        if obj:
          return json.dumps(obj)
        else:
          return None
  
      except:
        raise
docs: Retrieve object indexed by <key> and return it serialized