def make_array_of_dicts_from_response_json(response_json, index):
    """
    Makes array of dicts from stats.nba.com response json

    :param dict response_json: dict with response from request
    :param int index: index that holds results in resultSets array
    :return: list of dicts with data for each row
    :rtype: list[dict]
    """
    headers = response_json["resultSets"][index]["headers"]
    rows = response_json["resultSets"][index]["rowSet"]
    return [dict(zip(headers, row)) for row in rows]