change the output for staff

from sting to an array of objects