def METHOD_NAME(self, data: Union[Dict, List], name: str) -> str:
    """export data in existing user upload directory"""
    json_object = json.dumps(data, indent=4, default=str)
    file_path = os.path.join(self.export_directory, f"{name}.json")
    with open(file_path, "w") as export_file:
        export_file.write(json_object)
    return file_path