You should just use CSV format. Each "row" of your array would be written on its own line with commas between each pair of values.