Novak Djokovic beat Feliciano Lopez in the ATP World Tour 250 tournament final, winning his second title in Belgrade to the delight of the home crowd.