# ElasticSearch Indexing question

**URL:** <https://discuss.elastic.co/t/elasticsearch-indexing-question/35845>\
**Category:** Elasticsearch\
**Created:** [November 29, 2015, 8:32pm UTC](https://discuss.elastic.co/t/elasticsearch-indexing-question/35845 "2015-11-29T20:32:00Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [December 30, 2015, 10:20am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-question/35845/21 "2015-12-30T10:20:55Z")

</div>

I might be wrong but I think that if we replace `"\n"` by `'\n'` it will end up with JSON documents like:

```auto
{
  "foo": "Description
First paragraph"
}

```

Which sounds incorrect JSON to me.

So, I guess this is something that a client should deal with.

As I said, I might be wrong though.

---

<div class="post-metadata">

**Author:** ![Yorko](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@Yorko](https://discuss.elastic.co/u/Yorko)\
**Post date:** [December 30, 2015, 11:30pm UTC](https://discuss.elastic.co/t/elasticsearch-indexing-question/35845/22 "2015-12-30T23:30:32Z")

</div>

> [@dadoonet](#):
>
> I might be wrong but I think that if we replace `"\n"` by `'\n'` it will end up with JSON documents like:
> 
> ```auto
> {
> "foo": "Description
> First paragraph"
> }
> 
> ```
> 
> Which sounds incorrect JSON to me.
> 
> So, I guess this is something that a client should deal with.
> 
> As I said, I might be wrong though.

Interesting point.

A quick search gave me this:  
"(You need to escape the "" in your string (turning it into a  
double-""), otherwise it will become a newline in the JSON source, not  
the JSON data.)"

But you might be right maybe it should be an enhancement towards Kibana in this case.

---

<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:** [July 5, 2017, 11:27pm UTC](https://discuss.elastic.co/t/elasticsearch-indexing-question/35845/23 "2017-07-05T23:27:42Z")

</div>

Closed on July 5, 2017, 11:27pm UTC



[Previous page](https://discuss.elastic.co/t/elasticsearch-indexing-question/35845.md?page=1)
