def get_query_types(query_list):
    """
    This function is used to parse the query_ticket_grouping_types string from the app.config
    :param query_list: the string to parse into ticketType groupingType pairs for querying Securework ticket endpoint
    :return: List of json objects.  Each json entry is a ticketType, groupingType pair
    """
    query_pair_list = query_list.split(',')
    query_types = []
    for pair in query_pair_list:
        entry = {'ticketType': pair.split(':')[0].strip(),
                 'groupingType': pair.split(':')[1].strip()
                 }
        query_types.append(entry)
    return query_types