You seemed to be asking how to say that Ahmadinejad was something bad ("in a contemptible manner") that the people deserved for being bad themselves. That's what "just deserts" means. When you get your comeuppance, you get your just deserts. "Deserts" is always plural in this expression, and it is pronounced exactly like "desserts".