def METHOD_NAME(log_records, search_string):
    for log_record in logs.records[::-1]:
        if isinstance(log_record.msg, str) and search_string in log_record.msg:
            return json.loads(log_record.msg)