Set data as an array of objects.