title: parse_exception - request body is required
body: <p>I'm trying to insert a <code>JSON</code> data file in my <code>elasticsearch</code> instance.</p>
  
  <p><code>curl  -s -H “Content-Type: application/x-ndjson” -XPOST localhost:9200/_bulk —-data-binary “@restaurants.json”; echo</code></p>
  
  <p>However, after executing this command I get an error that says </p>
  
  <p><code>{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}</code></p>
  
  <p>The JSON file basically has an array of the below object.
  Only thing is that I've put just one object here to save space. However, there are more than one objects present. </p>
  
  <p>Structure is like given below;</p>
  
  <pre><code>[
     {
        "address": {
           "building": "351",
           "coord": [
              -73.98513559999999,
              40.7676919
           ],
           "street": "West   57 Street",
           "zipcode": "10019"
        },
        "borough": "Manhattan",
        "cuisine": "Irish",
        "name": "Dj Reynolds Pub And Restaurant",
        "grades": [
           {
              "date": {
                 "$date": "2014-09-06T00:00:00.000Z"
              },
              "grade": "A",
              "score": 2
           },
           {
              "date": {
                 "$date": "2013-07-22T00:00:00.000Z"
              },
              "grade": "A",
              "score": 11
           },
           {
              "date": {
                 "$date": "2012-07-31T00:00:00.000Z"
              },
              "grade": "A",
              "score": 12
           },
           {
              "date": {
                 "$date": "2011-12-29T00:00:00.000Z"
              },
              "grade": "A",
              "score": 12
           }
        ],
        "id": "30191841"
     }
  ]
  </code></pre>