Both salt and vinegar are effectively electrolytes. It's basically the useful part of a sports drink without the sugar. Fairly concentrated. In the summer, when I've been sweating like crazy, I've been known to drink a few sips of the pickle juice even. Nothing like it when your body is really craving some electrolytes. It's also the most amazing throat soother if you're a singer.
There are a lot worse things to eat.