import gzip
import json


def import_compressed_json(file_name):
    """Import gzip compressed JSON.
    :param file_name: Name of file to be read e.g. dict.json.gz
    :returns: JSON as a dictionary.
    """
    with gzip.open(file_name, mode="rt") as f:
        return json.load(f)