Changed data format of answers array to be an array of objects