A sheriff or other peace officer who holds money of the defendant is subject to garnishment, excepting only for money or property taken from a person arrested by such officer, at the time of the arrest. A judgment debtor of the defendant is subject to garnishment when the judgment has not been previously assigned on the record or by writing filed in the office of the clerk of the court that entered the judgment and minuted by the clerk as an assignment in the execution docket. An executor or administrator is subject to garnishment for money due from the decedent to the defendant.