filter through json data to pull out the needed info