loops through array of dictionaries, and outputs the keys and values to the screen