# The element of an array name has a period in the name. "pm2.5\_10minute"

**URL:** <https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775>\
**Category:** General\
**Tags:** http-request\
**Created:** [6 July 2022 19:09 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775 "2022-07-06T19:09:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlietzke](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnlietzke/32/64280_2.png) [@johnlietzke](https://discourse.nodered.org/u/johnlietzke)\
**Post date:** [6 July 2022 19:09 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775/1 "2022-07-06T19:09:26Z")

</div>

Any suggestions on how to get the value of the second object?

_object {_

- pm2.5: 0.8\*
- pm2.5\_10minute: 0.7\*
- pm2.5\_30minute: 0.6\*
- pm2.5\_60minute: 0.6\*
- pm2.5\_6hour: 1.6\*
- pm2.5\_24hour: 3\*
- pm2.5\_1week: 3.5\*  
_}_

Purple Air has problematic JSON naming, which make parsing difficult.

---

<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:** [6 July 2022 19:22 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775/2 "2022-07-06T19:22:14Z")

</div>

Use [bracket notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors)

Better still use the tools node-red provides - IE the "copy path" button...

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<div class="post-metadata">

**Author:** ![johnlietzke](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnlietzke/32/64280_2.png) [@johnlietzke](https://discourse.nodered.org/u/johnlietzke)\
**Post date:** [6 July 2022 19:24 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775/3 "2022-07-06T19:24:35Z")

</div>

Works perfectly. I have been Googling and reading the forums for the last half an hour with no clear path.

So simple, thank you again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 July 2022 19:24 UTC](https://discourse.nodered.org/t/the-element-of-an-array-name-has-a-period-in-the-name-pm2-5-10minute/64775/4 "2022-07-20T19:24:58Z")

</div>

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