def load_result_json(result_path, json_file_name):
    """load_result_json."""
    json_path = os.path.join(result_path, json_file_name)

    _list = []
    if os.path.isfile(json_path):
        with open(json_path) as json_data:
            try:
                _list = json.load(json_data)
            except ValueError as err:
                logger.error(
                    'Failed to load json: {}, {}'.format(json_path, err))

    return _list
def load_result_json ( result_path , json_file_name ) : json_path = os . path . join ( result_path , json_file_name ) _list = [ ] if os . path . isfile ( json_path ) : with open ( json_path ) as json_data : try : _list = json . load ( json_data ) except ValueError as err : logger . error ( 'Failed to load json: {}, {}' . format ( json_path , err ) ) return _list
load_result_json.