add removed json exception from flask