# Error in payload

**URL:** <https://discourse.nodered.org/t/error-in-payload/65715>\
**Category:** General\
**Created:** [27 July 2022 17:53 UTC](https://discourse.nodered.org/t/error-in-payload/65715 "2022-07-27T17:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sn19](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sn19](https://discourse.nodered.org/u/sn19)\
**Post date:** [27 July 2022 19:53 UTC](https://discourse.nodered.org/t/error-in-payload/65715/7 "2022-07-27T19:53:36Z")

</div>

Thank you @Steve-Mcl its working now without any errors. I figured out a fix for it and while the .json format was fine by itself , msg.payload could only be used with as a function block. when I try to use the same .json code in the inject node as a .json input itr gives me error unless I remove the msg.paylaod line and return.msg line.

---

_[View the full topic](https://discourse.nodered.org/t/error-in-payload/65715)._
