Ruby roles to json roles.