# Convert text to json

**URL:** https://discourse.nodered.org/t/convert-text-to-json/32558
**Category:** General
**Created:** [7 September 2020 16:58 UTC](https://discourse.nodered.org/t/convert-text-to-json/32558 "2020-09-07T16:58:55Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [8 September 2020 08:27 UTC](https://discourse.nodered.org/t/convert-text-to-json/32558/11 "2020-09-08T08:27:59Z")

</div>

> [@niclas.w82](#):
>
> aybe it´s an explanation why the delay is wery long?

Absolutely. But now you have at least learned that - even in your fast production system - there might be a keepalive chunk arriving from time to time.

But now you know how the protocol works, and you have a code snippet that should be enough to get you started. You need to run the code on your production system, and debug it until you are sure it work fine for a sequence of xmls. Perhaps you need to do a few small tweaks. Based on the stuff you are busy with, I assume you have enough technical skills to do that. In case you have no idea how to debug a function node, I wrote a short [tutorial](https://discourse.nodered.org/t/debug-js-code-inside-function-node/26925/14) some time ago.

---

_[View the full topic](https://discourse.nodered.org/t/convert-text-to-json/32558)._
