ElasticSearch Indexing question

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

{
  "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.