Processing JSON exceptions