title: Upload json file to elastic search using python
body: <p>I try to upload JSON file with 2 documents to ES.
  I got the following error </p>
  
  <pre><code>ValueError: Invalid control character at: line 1 column 24 (char 23)    
  </code></pre>
  
  <p>I'm using this python code:</p>
  
  <pre><code>import json
  import os, sys
  
  from elasticsearch import Elasticsearch
  
  ES_CLUSTER = 'http://localhost:9200/' # Need PW and User name
  ES_INDEX = 'test'
  ES_TYPE = 'doc'
  
  es = Elasticsearch(
      ['localhost'],
      http_auth=('elastic', 'changeme'),
      port=9200
  )
  es = Elasticsearch(ES_CLUSTER)
  with open("C:\Users\office\Desktop\Elasticsearch data\E-commerce.json") as json_file:
      json_docs = json.load(json_file)
  es.bulk(ES_INDEX, ES_TYPE, json_docs)
  </code></pre>