# How to seperate incoming ARRAY message from SNMP device

**URL:** <https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584>\
**Category:** General\
**Created:** [27 May 2019 07:17 UTC](https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584 "2019-05-27T07:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![muharremsari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/muharremsari/32/7996_2.png) [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Post date:** [27 May 2019 07:17 UTC](https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584/1 "2019-05-27T07:17:45Z")

</div>

How it does.

 ![seperate_array](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5501475b8b13ecf68164c3ad22750e47357bae39.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 May 2019 07:43 UTC](https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584/2 "2019-05-27T07:43:51Z")

</div>

The node red docs describing how to handle messages will show you how to get the path to that item from the payload.  
[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![muharremsari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/muharremsari/32/7996_2.png) [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Post date:** [27 May 2019 08:56 UTC](https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584/3 "2019-05-27T08:56:06Z")

</div>

Thanks for express answer Colin. Now the problem is almost solved.

I use change node .

Set msg.payload.value  
to msg.payload

Value came instead **"[Circular ~]"**

```auto
[{"id":"d4170f7d.697fd","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"6791bfb0.f0061","type":"snmp walker","z":"d4170f7d.697fd","host":"10.67.20.28","community":"public","version":"1","oids":"1.3.6.1.4.1.534.1.4.4.1.3","timeout":5,"name":"CMUPS CUR. OUT","x":359.5,"y":176,"wires":[["40588324.d68c3c"]]},{"id":"34e11622.78691a","type":"inject","z":"d4170f7d.697fd","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":177,"wires":[["6791bfb0.f0061"]]},{"id":"94ebf0be.198b3","type":"debug","z":"d4170f7d.697fd","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1090,"y":179,"wires":[]},{"id":"40588324.d68c3c","type":"json","z":"d4170f7d.697fd","name":"","property":"payload","action":"obj","pretty":false,"x":581.5,"y":177,"wires":[["9034130b.73bdd"]]},{"id":"9034130b.73bdd","type":"function","z":"d4170f7d.697fd","name":"","func":"msg.payload = msg.payload [0]\nreturn msg;","outputs":1,"noerr":0,"x":773.5,"y":176,"wires":[["43d84565.cbe5cc"]]},{"id":"43d84565.cbe5cc","type":"change","z":"d4170f7d.697fd","name":"","rules":[{"t":"set","p":"payload.value","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":908.5,"y":286,"wires":[["94ebf0be.198b3"]]}]

```

---

<div class="post-metadata">

**Author:** ![muharremsari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/muharremsari/32/7996_2.png) [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Post date:** [27 May 2019 09:03 UTC](https://discourse.nodered.org/t/how-to-seperate-incoming-array-message-from-snmp-device/11584/4 "2019-05-27T09:03:28Z")

</div>

I was solve this problem wrote that **msg.payload = msg.payload [0].value** at theFunction node.

Thnks for all.

Best regards
