import json


def read_json(filename):
    """Read JSON file and store to a variable.

    Args:
        filename (str): file name (input)

    Returns:
        (dict): data in json format

    Example:

        >>> import log
        >>> data = log.read_json("test.json")
    """
    with open(filename) as j:
        return json.load(j)