Splitting an array of objects

But what do you expect to turn these array of objects into?

There are an unknown amount of array entries & each object in the array has 4 properties.

So if there is only 1 row, what would you expect to come out of this "function"?

  • A single object with the 4 named properties?
    Or
  • 4 messages with the payload set to the value and the topic set to the property name?
    Or
  • 1 message with all 4 properties as a comma separated string?
    Or
  • Something else?

Then what if there are 2 rows or more rows?