@classmethod
def from_file(cls, file_name):
    'Load a profile from a json file\n\n        :param file_name: the name of the input file\n        '
    with open(file_name) as of:
        try:
            data = json.load(of)
        except ValueError:
            log.error('Malformed json file %s', file_name)
            raise jip.ValidationError('jip.profiles', ('Malformed json file %s' % file_name))
        return cls.from_dict(data)
Load a profile from a json file

:param file_name: the name of the input file
@classmethod
def from_file(cls, file_name):
    'Load a profile from a json file\n\n        :param file_name: the name of the input file\n        '
    with open(file_name) as of:
        try:
            data = json.load(of)
        except ValueError:
            log.error('Malformed json file %s', file_name)
            raise jip.ValidationError('jip.profiles', ('Malformed json file %s' % file_name))
        return cls.from_dict(data)