from typing import Union


def add_job_dir_to_json_name(job_dir: str, path: str) -> Union[str, None]:
    """Add the job directory (<molecule_name>_qforce) to a given json file name.

    Keyword arguments
    -----------------
        job_dir : str
            the job directory
        path : str
            the name of the json file (without extension)

    Returns
    -------
        The composite path (str) if "path" is not None, else None
    """
    return job_dir + '/' + path + '.json' if path is not None else None