Normalize dialog to edit json