def loadJson(filename=""):
    """ Loads json object from filename, returns unjsoned object"""
    if not filename:
        raise ParameterError("Empty filename to load.")

    with ocfn(filename) as f:
        try:
            it = json.load(f, object_pairs_hook=odict())
        except EOFError:
            return None
        except __HOLE__:
            return None
        return it
dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/filing.py/loadJson