from typing import Union
import json


def __openJson(file:str) -> Union[dict, None]:
    """
    Open given json file.

    :param file: filepath
    :type  file: str

    :return: Data in json file
    :rtype: dict or None
    """
    mapping = None
    with open(file) as json_file:
        mapping = json.load(json_file)
    return mapping