# Invalid JSON string with MQTT node

**URL:** https://discourse.nodered.org/t/invalid-json-string-with-mqtt-node/45650
**Category:** General
**Created:** [14 May 2021 14:03 UTC](https://discourse.nodered.org/t/invalid-json-string-with-mqtt-node/45650 "2021-05-14T14:03:00Z")
**Posts on this page:** 1
**Showing post:** 18

<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: [17 May 2021 07:21 UTC](https://discourse.nodered.org/t/invalid-json-string-with-mqtt-node/45650/18 "2021-05-17T07:21:17Z")

</div>

> [@BGael](#):
>
> So can we convert such a format (buffer) into a json or javascript object

Yes.

See this recent solution for similar question: [Relpy to TCP -- Trouble responding with a "1" - #16 by Steve-Mcl](https://discourse.nodered.org/t/relpy-to-tcp-trouble-responding-with-a-1/45081/16)

---

_[View the full topic](https://discourse.nodered.org/t/invalid-json-string-with-mqtt-node/45650)._
