code: def serialize(self):
          
  
          arguments = []
  
          if isinstance(json.loads(self.data), dict):
              for k, v in json.loads(self.data).items():
                  arguments.append({
                      'resultId': self.result_id,
                      'key': k,
                      'value': str(v) if v is not None else None,
                  })
  
          return arguments
docs: serialize.