You should use the actual property here... ct_items[i].name