code: def _write_json(self, filepath, filename, writemode, content, indent):
          
          with open(os.path.join(filepath, filename), writemode) as fil:
              json.dump(content, fil, indent=indent)
              self.logger.info("Wrote content to file {}".format(filename))
docs: Helper for writing content to a file.
  
          :param filepath: path to file
          :param filename: name of file
          :param writemode: writemode used
          :param content: content to write
          :param indent: value for dump indent parameter.
          :return: Norhing