# How to mask a point in a path?

**URL:** https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774
**Category:** General
**Created:** [6 December 2021 10:11 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774 "2021-12-06T10:11:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SN-8023](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sn-8023/32/52139_2.png) [@SN-8023](https://discourse.nodered.org/u/SN-8023)
#### Post date: [6 December 2021 10:11 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774/1 "2021-12-06T10:11:23Z")

</div>

I have a particle sensor under tasmota.... I get the payload in the format

Payload:{"Time":"2021-12-06T10:53:53","BME280":{"Temperature":22.3,"Humidity":38.2,"DewPoint":7.4,"Pressure":997.8},"VINDRIKTNING":{"PM1":895,"PM2.5":8,"PM10":33},"PressureUnit":"hPa","TempUnit":"C"}

...  
$string(VINDRIKTNING.PM1) works  
$string(VINDRIKTNING.PM2.5) does not work  
$string(VINDRIKTNING.PM10) work  
...

How can I mask the dot at 2.5?

---

<div class="post-metadata">

### Author: ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)
#### Post date: [6 December 2021 11:13 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774/2 "2021-12-06T11:13:55Z")

</div>

Feed your payload trough a json node and everything is handled for you, no need to works with strings.

---

<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: [6 December 2021 12:09 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774/3 "2021-12-06T12:09:16Z")

</div>

You need to use the alternate syntax `VINDRIKTNING["PM2.5"]` instead

---

<div class="post-metadata">

### Author: ![SN-8023](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sn-8023/32/52139_2.png) [@SN-8023](https://discourse.nodered.org/u/SN-8023)
#### Post date: [6 December 2021 12:16 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774/4 "2021-12-06T12:16:49Z")

</div>

> [@dceejay](#):
>
> VINDRIKTNING["PM2.5"]

works perfectly

Thanks a lot guys!

PS.:  
Does not work after all... the node does not complain, but the output value is wrong...

however,

$string(VINDRIKTNING."PM2.5")

Works as desired.

Thanks...

---

<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 December 2021 12:16 UTC](https://discourse.nodered.org/t/how-to-mask-a-point-in-a-path/54774/5 "2021-12-20T12:16:58Z")

</div>

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