# JSON Error in Node-RED

**URL:** <https://discourse.nodered.org/t/json-error-in-node-red/1396>\
**Category:** General\
**Created:** [6 July 2018 13:01 UTC](https://discourse.nodered.org/t/json-error-in-node-red/1396 "2018-07-06T13:01:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhoemio](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@Bhoemio](https://discourse.nodered.org/u/Bhoemio)\
**Post date:** [6 July 2018 13:01 UTC](https://discourse.nodered.org/t/json-error-in-node-red/1396/1 "2018-07-06T13:01:06Z")

</div>

Hello everyone,

I am trying to get a output in a JSON format, but I'm getting the following error: "Unexpected token = in JSON at position 0".

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a73d9a875ec10d0448b7cd3bdf53c96768d2d2fb.png)  
How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [6 July 2018 13:13 UTC](https://discourse.nodered.org/t/json-error-in-node-red/1396/2 "2018-07-06T13:13:51Z")

</div>

Add some debug nodes to the outputs of the nodes before your JSON node to see what info is being passed to the JSON node
