# Unexpected non-whitespace character after JSON at position 93

**URL:** https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111
**Category:** General
**Created:** [1 October 2024 17:11 UTC](https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111 "2024-10-01T17:11:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [1 October 2024 17:11 UTC](https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111/1 "2024-10-01T17:11:16Z")

</div>

Hiho, I get this error message since update to NR 4.0x at json node:  
"Unexpected non-whitespace character after JSON at position 93"  
The message that causes this looks normal to me:

```auto
{"topic":"/EspNowPub","payload":"{\"Id\":\"E8:DB:84:9C:22:C7\",\"ESPX\":\"true\",\"MQTT\":\"false\",\"Pub\":\"/EspNowPub\",\"Sub\":\"/EspNowSub\"}","qos":0,"retain":false,"_msgid":"1a57bf5dde0e2ece","_event":"node:6f56b2a5.f434ac"}

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f547ead197c397fcdc0d11c2a6ee0add3597ec0.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: [1 October 2024 17:51 UTC](https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111/2 "2024-10-01T17:51:26Z")

</div>

On the MQTT Node that generates the message, set it to output `a Buffer`, then copy the payload using the copy button that appears above the payload buffer when you hover over it.

> [@WhiteLion](#):
>
> I get this error message since update to NR 4.0x

What version of Node-RED and NodeJS were you on before and what exact versions are you running now?

Lastly, what generates that message?

---

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [1 October 2024 18:31 UTC](https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111/3 "2024-10-01T18:31:02Z")

</div>

hi Steve,  
I was a bit quick with my post. The message comes from a sensor which is corrupted. The message is forwarded by another ESP Now sensor and I guess that there must go something wrong that I have to investigate.

---

<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: [15 October 2024 18:31 UTC](https://discourse.nodered.org/t/unexpected-non-whitespace-character-after-json-at-position-93/92111/4 "2024-10-15T18:31:29Z")

</div>

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