def METHOD_NAME(pylint_json):
    issues = []
    for issue in pylint_json:
        if issue['type'] in ['error', 'warning']:
            for unnecessary_information in ['module', 'obj', 'path', 'message-id']:
                issue.pop(unnecessary_information)
            issues.append(issue)
    return issues