Sort msg.payload Arrays into sections

Please see:

array.map

also threads I've written that use the array.map method that might help you.

Populate data from database into Dropdownlist

Help with my flow: generating an email from array

I am now working on a solution for you. ...... I've become the array.map guy........lord help me