def load_json(jf):
    with open(jf) as of:
        try:
            data = json.load(of)
        except ValueError:
            log.error('Malformed json file %s', jf)
            raise jip.ValidationError('jip.profiles', ('Malformed json file %s' % jf))
    return data
def load_json(jf):
    with open(jf) as of:
        try:
            data = json.load(of)
        except ValueError:
            log.error('Malformed json file %s', jf)
            raise jip.ValidationError('jip.profiles', ('Malformed json file %s' % jf))
    return data