fix exception view for json error in browser