code: def dump(self, file, payload):
          
          json.dump(payload, file, indent=2, ensure_ascii=False)
docs: Dump json oject to open file output.
  
          Writes json with 2 spaces indentation.
  
          Args:
              file: Open file-like object. Must be open for writing.
              payload: The Json object to write to file.
  
          Returns:
              None.