# Inject Node - Max size of JSON payload

**URL:** <https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695>\
**Category:** General\
**Created:** [5 December 2022 06:34 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695 "2022-12-05T06:34:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [5 December 2022 07:17 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695/2 "2022-12-05T07:17:49Z")

</div>

Hello .. according to the settings.js description ([source](https://github.com/node-red/node-red/blob/master/packages/node_modules/node-red/settings.js#L156)) the default max size of the json data is 5MB  
that can be changed by editing the `apiMaxLength` property

[Related Topic Link](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053)

---

_[View the full topic](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695)._
