# Unexpected end of json input

**URL:** <https://discourse.nodered.org/t/unexpected-end-of-json-input/46538>\
**Category:** General\
**Created:** [1 June 2021 05:08 UTC](https://discourse.nodered.org/t/unexpected-end-of-json-input/46538 "2021-06-01T05:08:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmkarNodered](https://avatars.discourse-cdn.com/v4/letter/o/90ced4/32.png) [@OmkarNodered](https://discourse.nodered.org/u/OmkarNodered)\
**Post date:** [1 June 2021 05:08 UTC](https://discourse.nodered.org/t/unexpected-end-of-json-input/46538/1 "2021-06-01T05:08:08Z")

</div>

I have csv file having data in json format. I want to read that data as a javascript object and I am using file node and json node to read data from that file, but it is giving error that 'Unexpected end of JSON input' and also it is giving output. Can someone help me to remove that error?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 June 2021 07:30 UTC](https://discourse.nodered.org/t/unexpected-end-of-json-input/46538/2 "2021-06-01T07:30:37Z")

</div>

> [@OmkarNodered](#):
>
> Can someone help me to remove that error?

not unless you share sample file and your flow.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 July 2021 07:30 UTC](https://discourse.nodered.org/t/unexpected-end-of-json-input/46538/3 "2021-07-31T07:30:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
