# Parsing JSON from a Shelly Plus1

**URL:** <https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279>\
**Category:** General\
**Created:** [6 October 2025 16:38 UTC](https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279 "2025-10-06T16:38:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [6 October 2025 16:38 UTC](https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279/1 "2025-10-06T16:38:23Z")

</div>

![Screenshot 2025-10-06 183031](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68a2b356f8018549f1dc95fdbffa524801d4d7bc.png)  
Hi all, I fail to parse "output" .... pls help!  
Pic is a screenshot from MQTT explorer. Problem "switch:0" .  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [6 October 2025 17:41 UTC](https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279/2 "2025-10-06T17:41:44Z")

</div>

Because your params.switch:0 key is unconventional, you probably need to use square bracket notation, for example:  
`msg.payload.params["switch:0"].output`

(I don't know if the screengrab you showed us is msg.payload. It would be better if you had used a debug node and it's "copy value" button to share the data)

If you control the name of the Shelly device, I advise you to get rid of that colon and call it switch0

---

<div class="post-metadata">

**Author:** ![AloisBachmeier](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aloisbachmeier/32/82319_2.png) [@AloisBachmeier](https://discourse.nodered.org/u/AloisBachmeier)\
**Post date:** [6 October 2025 20:02 UTC](https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279/3 "2025-10-06T20:02:57Z")

</div>

It works .... thanks a lot !

---

<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:** [4 January 2026 20:03 UTC](https://discourse.nodered.org/t/parsing-json-from-a-shelly-plus1/99279/4 "2026-01-04T20:03:06Z")

</div>

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