# How to insert data from a json file using bulk API in ES2.1

**URL:** <https://discuss.elastic.co/t/how-to-insert-data-from-a-json-file-using-bulk-api-in-es2-1/36758>\
**Category:** Elasticsearch\
**Created:** [December 9, 2015, 3:32pm UTC](https://discuss.elastic.co/t/how-to-insert-data-from-a-json-file-using-bulk-api-in-es2-1/36758 "2015-12-09T15:32:10Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 10, 2016, 10:21am UTC](https://discuss.elastic.co/t/how-to-insert-data-from-a-json-file-using-bulk-api-in-es2-1/36758/13 "2016-11-10T10:21:10Z")

</div>

The body part must be on a single line. I think this is your issue here.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-insert-data-from-a-json-file-using-bulk-api-in-es2-1/36758)._
