# Read an array of object

**URL:** <https://discourse.nodered.org/t/read-an-array-of-object/5978>\
**Category:** General\
**Created:** [20 December 2018 09:57 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978 "2018-12-20T09:57:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)\
**Post date:** [20 December 2018 09:57 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/1 "2018-12-20T09:57:01Z")

</div>

hi,

i´m searchin for a solution to read this array of objects.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/326834cdbbbe7151dc3f8752106846d9196189e5.png)

It is the status of the Siemens Logo8 Outputs which is controlled from LogoControl. There i can use request when a output had changed the status.  
I want to read this, for e.g. start other tasks. The yellow marked part is on which changes from object 1 to 46.

Any idea / help to read that to put it into a switch node?

---

<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:** [20 December 2018 12:02 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/2 "2018-12-20T12:02:47Z")

</div>

If you hover over the preporty you are interested in then some little square buttons appear to the right. Clicking on one of those will say something like Path Copied. You can then paste that into the Property field of a Switch node, for example. In your case you want something like `msg.payload.attributeUpdates[29].A`

---

<div class="post-metadata">

**Author:** ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)\
**Post date:** [20 December 2018 13:30 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/3 "2018-12-20T13:30:09Z")

</div>

Ahh ... that´s easy. Thank you very much.

---

<div class="post-metadata">

**Author:** ![MarcoVg](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MarcoVg](https://discourse.nodered.org/u/MarcoVg)\
**Post date:** [29 December 2020 08:39 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/4 "2020-12-29T08:39:41Z")

</div>

Good morning,

I have a simular problem, but in my case a would like to select the object of array with an external variabile, that can change. How can i do ?

Thanks for the help.

Marco

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 December 2020 09:30 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/5 "2020-12-29T09:30:38Z")

</div>

Hi @MarcoVg, welcome to the forum. As your issue is different to this 2y old thread, please make a new thread & provide details explaining what you what to achieve & how/when this variable changes.

Cheers.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 January 2021 18:00 UTC](https://discourse.nodered.org/t/read-an-array-of-object/5978/6 "2021-01-12T18:00:00Z")

</div>

This topic was automatically closed after 14 days. New replies are no longer allowed.
