Whenever a final judgment is made in favor of the defendant or defendants in any action, notice of the pendency of which has been filed in the office of any county clerk or register of deeds and mortgages, the county clerk or register of deeds and mortgages in whose office the notice has been filed shall, when a copy of such judgment, certified under the seal of the court in which the judgment shall have been obtained, is filed in his office, enter in the margin of the record of the notice a statement of the substance of the judgment. Thereafter the real estate described in the notice shall be discharged of all equities or claims set up in the complaint in the action, unless the plaintiff takes an appeal or institutes proceedings for relief from the judgment and files a similar notice of lis pendens in said office, stating in the notice the object of the appeal or proceedings. Such notice shall, during the pendency of such appeal or proceedings, have the effect of the notice first filed, and the real estate described in the notice may be discharged of all equities set up in the complaint, in the manner provided for the discharge of the notice first filed.
N.J.S. § 2A:15-14