How read array?

Hi to all! I apologize but I am still newbie about nred...

I need to display data on map, so I started reading data from sqlite table.
I can correctly query my table using function but output is:

0: object
 name: "kjh"
 lat: "12.433"
 lon: "12.444"

1: object....

I don't understand how read all array elements and send data to map, how can I create output msg for every element?

If you send it through a Split node it will split it into 38 messages, each containing one element from the array.

Ok, thanks, I supposed to work with Split node but I thought it was wrong due I read "separator" field...

actually node-red-contrib-web-worldmap would probably take that array as-is and display all the points :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.