import json


def loads_json(fid, **kwargs):
    """ Loads a JSON file and returns it as a dict.

    :param path: String or another object that is accepted by json.loads
    :param kwargs: See ``json.dump()``.
    :return: Content of the JSON file.
    """
    assert isinstance(fid, str), fid

    return json.loads(fid, **kwargs)