Ask bankrupcy lawer of your choice--not the enemy's!
Its not clear what you mean by you got a judgement.
If A gets an ordinary judgement that B owes A $2500 then A is generally an unsecured creditor and A stands to get wiped out if B declares bankrupt and there is not enough money to pay off unsecured creditors.
If you meant you got CS or alimony that likley not wiped out.
If you meant the divorce order said B is to pay the joint A/B credit card debt of $20,000 +/- and B files bankrupt , well B need not pay the CC directly and CC firms can pound A to pay and A will get stuck to pay. A can sue B to perform as ordered in divorce -and seek contempt charges -but that may be a laugh as impossibility to pay is generally a good defense and B walks free.
The better defense is to actually get paid and/or have the payment secured by a recorded first lien position on some valuable asset the other person holds in own name . Or in hindsight to have the order spell out some rather Draconian outcomes if the person fails to pay and have it crafted such that the outcomes survive any bankrupcy or impossibility to pay --example might be --A to get home and is to refinance and pay B $50,000--but might be wiser to add that A must refinance and pay $50,000 in 90 days or upon default the title is awarded by order of court to B.