What parts are you looking for from this boat?
The J/22 is a great boat but unless you already have one the value of the parts will be only the cash value you can expect to sell them for.
To me if the Hull were wet that would be the deal breaker. A bulkhead can be replaced (not a fun or easy job), decks can easily have wet sections replaced.
But if the spar is shot that is a lot of money. A J/22 with a trashed mast and hull is not worth very much at all in my opinion. (unless of course it has great sails that are new).
Sorry this doesn't sound like much help but your description of this boat is not very glowing. You basically said the hull, deck, mast and bulkheads are shot. There are not a lot of major components left after that. Spinnaker pole, boom, blocks, winches, miscellaneous gear.
RNSYS in Halifax has a small fleet of these for LTS. This sort of miscellaneous gear might be good in that situaton - but if the boat is as bad as you say then it has very little value.
You might want to get a moisture meter or someone good with one and take a real look at hull, deck and bulkheads andasses mast before you make a decision.