# Problem with corrupt JSON File

**URL:** https://discourse.nodered.org/t/problem-with-corrupt-json-file/7058
**Category:** General
**Created:** [20 January 2019 19:33 UTC](https://discourse.nodered.org/t/problem-with-corrupt-json-file/7058 "2019-01-20T19:33:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Florian75](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@Florian75](https://discourse.nodered.org/u/Florian75)
#### Post date: [20 January 2019 19:33 UTC](https://discourse.nodered.org/t/problem-with-corrupt-json-file/7058/1 "2019-01-20T19:33:32Z")

</div>

Hello together,

i have a problem writing a JSON-struct to a file. I use a standard "file node" to write the data into a JSON-File. But after some (20 to 40) good cases, the file is corrupt. It looks like this:

{"payload":{"OperatingTime\_Sec":343.282,"OilBurnerStarts\_Cnt":2,"OilConsumption\_Liter":0.1804614402777778}}9444444446}}

Is this a known issue?

regards  
Florian

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [20 January 2019 20:06 UTC](https://discourse.nodered.org/t/problem-with-corrupt-json-file/7058/2 "2019-01-20T20:06:24Z")

</div>

What version of NR are you using? There was such an issue in 0.19.0 and was fixed in one of the later maintenance releases.

---

<div class="post-metadata">

### Author: ![Florian75](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@Florian75](https://discourse.nodered.org/u/Florian75)
#### Post date: [20 January 2019 20:23 UTC](https://discourse.nodered.org/t/problem-with-corrupt-json-file/7058/3 "2019-01-20T20:23:19Z")

</div>

i'am using an older one v0.17.5.
