Combine the vegetables, salt, and sugar, and cook until the mixture begins to thicken.
Add vinegar and whole spices, in bag, and cook until the mixture becomes a thick sauce.
Pour into hot jars and seal immediately.
Drain juice from vegetables before adding vinegar. This will shorten the cooking period.