import json


def load_int_key_json2dict(f):
    """Read JSON file to dict, converting keys to int."""
    d = {}
    with open(f, 'r', encoding='UTF-8') as json_file:
        d = {int(k): v for k, v in json.load(json_file).items()}

    return d