covert roles array into object

Update roles --convert array to object.