Parses collected data into an array.