Some people think cramping is frequently due to ion deficiency. Pickle juice is usually pretty high in ions, such as Na+.
However, cramping is not always an ion balance issue. It can frequently be a dehydration thing, over-training, using an excessively tight or stretched muscle in an atypical position, nervous system dysfunction, lack of energy substrates, etc.