import json


def load_credentials(path):
    """ Loads credentials from JSON file

    Args:
        path (str): JSON file with credentilas path

    Returns:
        dict: Dictionary with credentials
    """

    try:
        with open(path, 'r') as fp:
            return json.load(fp)
    except FileNotFoundError:
        print('Credentials file not found')
        return None