# Node-red-contrib-worldmap with Json array

**URL:** <https://discourse.nodered.org/t/node-red-contrib-worldmap-with-json-array/12523>\
**Category:** General\
**Created:** [23 June 2019 20:45 UTC](https://discourse.nodered.org/t/node-red-contrib-worldmap-with-json-array/12523 "2019-06-23T20:45:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanserg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanserg/32/5472_2.png) [@sanserg](https://discourse.nodered.org/u/sanserg)\
**Post date:** [23 June 2019 20:45 UTC](https://discourse.nodered.org/t/node-red-contrib-worldmap-with-json-array/12523/1 "2019-06-23T20:45:09Z")

</div>

Hi team, I do have a Json array with many itens (id,lat,long)  
See example:  
msg.payload.users.messageList[1..n].message[1...n].latitude[0]  
msg.payload.users.messageList[1..n].message[1...n].longitude[0]  
msg.payload.users.messageList[1..n].message[1...n].id[0]

I was trying to consider the worldmap example but it uses a csv node to point itens on the map.

Does anybody has any example about how to point many itens in the map considering lat,long in a Json array ? Should I implement a loop in a function considering worldmap node?  
tkanks

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 June 2019 21:37 UTC](https://discourse.nodered.org/t/node-red-contrib-worldmap-with-json-array/12523/2 "2019-06-23T21:37:54Z")

</div>

The worldmap doesn't use csv - but it will accept an array of javascript objects like

```
[{"name":"thing1", "lat":51, "lon":-1}, {"name":"thing2", "lat":52, "lon":-2}, {"name":"thing3", "lat":53, "lon":-3}]

```

So you need to manipulate your array into san array like that.

---

<div class="post-metadata">

**Author:** ![sanserg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanserg/32/5472_2.png) [@sanserg](https://discourse.nodered.org/u/sanserg)\
**Post date:** [23 June 2019 22:52 UTC](https://discourse.nodered.org/t/node-red-contrib-worldmap-with-json-array/12523/3 "2019-06-23T22:52:04Z")

</div>

thanks @dceejay...worked now
