Savegame - array of arrays?

I have a set of constantly changing arrays of variable lengths in actors in my level.

When saving a set of single variables such as actor location, I’m saving them to arrays of that variable.

How should I save the set of arrays in a savegame file? I cannot see any documentation on the use of 2D arrays.