serialize roles to array instead of json