title: Getting "illegal_argument_exception" error while loading dataset in Elasticsearch
body: <p>I am getting started with elastic search, I am trying to load the JSON dataset using the _bulk method. But I am getting the below error.</p>
  <pre><code>{
    &quot;error&quot; : {
      &quot;root_cause&quot; : [ {
        &quot;type&quot; : &quot;illegal_argument_exception&quot;,
        &quot;reason&quot; : &quot;Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_NUMBER]&quot;
      } ],
      &quot;type&quot; : &quot;illegal_argument_exception&quot;,
      &quot;reason&quot; : &quot;Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_NUMBER]&quot;
    },
    &quot;status&quot; : 400
  }
  </code></pre>
  <p>Seems like some issue with my JSON file, I validated the JSON and it seems to be okay.</p>
  <p>Here is my sample file.</p>
  <pre><code>{
  &quot;id&quot;: 3,
  &quot;customer_number&quot;: &quot;&quot;,
  &quot;last_name&quot;: &quot;anon&quot;,
  &quot;first_name&quot;: &quot;zin&quot;,
  &quot;email&quot;: &quot;anon@xyz.com&quot;,
  &quot;phone_number&quot;: &quot;409-860-9006 x109&quot;,
  &quot;registered_at&quot;: &quot;2007-05-02T16:27:50.74-05:00&quot;,
  &quot;last_visit_at&quot;: &quot;2014-07-18T11:06:15-05:00&quot;,
  &quot;adcode&quot;: &quot;&quot;,
  &quot;adcode_id&quot;: 0,
  &quot;affiliate_id&quot;: null,
  &quot;customer_type_id&quot;: 0,
  &quot;is_no_tax_customer&quot;: true,
  &quot;comments&quot;: &quot;a&quot;,
  &quot;store_id&quot;: 5,
  &quot;source&quot;: &quot;&quot;,
  &quot;search_string&quot;: &quot;&quot;,
  &quot;no_account&quot;: false,
  &quot;sales_person&quot;: &quot;SSB&quot;,
  &quot;alternate_phone_number&quot;: &quot;800-936-9006 x109&quot;,
  &quot;is_affiliate_customer&quot;: false,
  &quot;updated_at&quot;: &quot;2014-06-30T18:34:11.043-05:00&quot;,
  &quot;created_at&quot;: &quot;2007-05-02T16:27:50.74-05:00&quot;,
  &quot;username&quot;: &quot;&quot;,
  &quot;is_contact_information_only&quot;: false,
  &quot;tax_exemption_number&quot;: &quot;&quot;,
  &quot;company&quot;: &quot;anon&quot;,
  &quot;source_group&quot;: &quot;&quot;,
  &quot;store_payment_methods_enabled&quot;: [0],
  }
  </code></pre>
  <p>And the statement used to post the data is mentioned below.</p>
  <pre><code>curl -XPOST 'localhost:9200/customer/_bulk?pretty' --data-binary &quot;@account_sample.json&quot;
  </code></pre>
  <p>Can anyone please help me out with this?</p>