# Importing large pretty printed .JSON files

**URL:** <https://discuss.elastic.co/t/importing-large-pretty-printed-json-files/147120>\
**Category:** Elasticsearch\
**Created:** [September 3, 2018, 10:47pm UTC](https://discuss.elastic.co/t/importing-large-pretty-printed-json-files/147120 "2018-09-03T22:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terrell\_Gilbert](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@Terrell\_Gilbert](https://discuss.elastic.co/u/Terrell_Gilbert)\
**Post date:** [September 3, 2018, 10:47pm UTC](https://discuss.elastic.co/t/importing-large-pretty-printed-json-files/147120/1 "2018-09-03T22:47:08Z")

</div>

I'm aware that the Bulk API does not support the importation of .json files that are pretty printed, I have a few files ranging from 250mb to a 1gb, does anyone have any recommendations for minifying the files. I've considered writing a python script to handle the operation but the output isn't returning the ideal solution. The files are too large for any web-based tools I've used thus far.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 4, 2018, 8:17am UTC](https://discuss.elastic.co/t/importing-large-pretty-printed-json-files/147120/2 "2018-09-04T08:17:01Z")

</div>

a little offtopic here, but you could either use `cat foo.json | jq -c .` or just use one of the official clients and let them do the heavy lifting...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 2, 2018, 8:17am UTC](https://discuss.elastic.co/t/importing-large-pretty-printed-json-files/147120/3 "2018-10-02T08:17:03Z")

</div>

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