Just to make sure we don't break the json encoding If the json was valid, and now it isn't, then just abort the replace and treat it as a new class of error