It is usually easiest to take any data and flatten it to string before sending.
On the receiving side, use unflatten from string, using the original data type as template.
You can do this with any kind of data (array of strings, array of numbers, booleans, complicated clusters, etc, etc), see attached code image.
Flatten and unflatten is very efficient and does not change the data. For example there is no rounding or formatting loss.