fix an error in the JSON text