# Is this a JSON string?

**URL:** https://discourse.nodered.org/t/is-this-a-json-string/32232
**Category:** General
**Created:** [30 August 2020 21:00 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232 "2020-08-30T21:00:54Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [31 August 2020 10:29 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232/21 "2020-08-31T10:29:00Z")

</div>

"a parsed JSON object"

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [31 August 2020 10:31 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232/22 "2020-08-31T10:31:00Z")

</div>

Yes, ok. But when I took that entire message to:  
[This site](https://jsonformatter.curiousconcept.com/)

It is valid.

So.....

 ![Screenshot from 2020-08-31 20-30-23](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/ca03bc325df12a3532b1964a306f9c9c990bc09c.png)

---

<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: [31 August 2020 10:34 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232/23 "2020-08-31T10:34:41Z")

</div>

Yes. Of course the whole message is valid JSON (the msg is a js object and thus stringifyable) but MQTT transmits `payload` and `topic` only. It is the payload that it tries to parse. Go on the validator site and try validating `rgb,6,120,0,90`.

Remember - that's why you use them "cheat" functions to shift values into and out of payload property.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [31 August 2020 10:42 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232/24 "2020-08-31T10:42:27Z")

</div>

Well, I just tried it again - after running in circles for .... 10 minutes. - it works.

I really don't get what is going on or why it is happening.

---

<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: [30 October 2020 10:42 UTC](https://discourse.nodered.org/t/is-this-a-json-string/32232/25 "2020-10-30T10:42:33Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/is-this-a-json-string/32232.md?page=1)
