converts base role from json to ruby