What is the best way to store the contents of a list box in a
preference? I have a list box with multiple list items. Each item
consists of multiple cells. One cell contains a file path. It is also
possible to move items up and down.

Currently I create an object, which represents the contents of the
list, convert it to JSON and store the JSON string in a single
preference. Is this the best way? Or should I use one preference for
each list item or even one preference for each list cell?