def load_json_from_file(file_path):
    """Load schema from a JSON file"""
    try:
        with open(file_path) as f:
            json_data = json.load(f)
    except ValueError as e:
        raise ValueError('Given file {} is not a valid JSON file: {}'.format(file_path, e))
    else:
        return json_data
def load_json_from_file ( file_path ) : try : with open ( file_path ) as f : json_data = json . load ( f ) except ValueError as e : raise ValueError ( 'Given file {} is not a valid JSON file: {}' . format ( file_path , e ) ) else : return json_data
Load schema from a JSON file