Any person in the peaceable possession of lands in this state and claiming ownership thereof, may, when his title thereto, or any part thereof, is denied or disputed, or any other person claims or is claimed to own the same, or any part thereof or interest therein, or to hold a lien or encumbrance thereon, and when no action is pending to enforce or test the validity of such title, claim or encumbrance, maintain an action in the superior court to settle the title to such lands and to clear up all doubts and disputes concerning the same.
N.J.S. § 2A:62-1