import json


def json_from_file(file_name):
    """Read data from file and return as dict,
    if any exception occurs - return empty dict
    :param file_name: filepath to dump data to
    :type file_name: str
    :return: dictionary with data from json file
    :rtype: dict
    """
    data = {}
    with open(file_name, "r", encoding="utf-8") as f_in:
        data = json.load(f_in)
    return data