Vegetable "jam" with salt instead of sugar My bread baker has a program for preparing jams. The recipe says to put 3 cups of fruit with 1 cup of water and some lemon juice. This tastes great and it is also preserved well for over a year.

Now I would like to use the baker for preserving vegetables in the same way. I can use the same recipe and have sweet jams of vegetables like tomatoes, onions or carrot. But I would also like to have salty-flavored "jams". So my question is: can I just replace the cup of sugar with a cup of salt? Can a jam prepared like this be preserved for a long time?
No! A cup of salt is an enormous amount and would be dangerous for anyone who ate it, although they are unlikely to be able to swallow it in the first place as it would taste awful.

Preserving vegetables can be done with or without preservative agents like sugar, salt, and acid but  you won't be able to use your bread machine's jam making function. I would highly doubt that the jam made in your bread maker would be good for a year anyway, as long-term preservation requires canning and processing which isn't going to be done by a bread machine.