title: Importing JSON file using mongimport, keep getting `unexpected identifier`?
body: <p>I'm trying to add a JSON file to mongodb using <code>mongoimports</code> from terminal, here:</p>
  
  <pre><code> mongoimport --db my_db --collection my_collection --file /content/2_read.json
  </code></pre>
  
  <p>I keep getting <code>JavaScript execution failed: SyntaxError: Unexpected identifier</code>
  I ran my JSON through JSON Lint: <a href="http://jsonlint.com/" rel="noreferrer">http://jsonlint.com/</a>   which says it's valid JSON.</p>
  
  <p>I'm not sure what could be tripping up the import process?? Or how to investigate further to hunt down the issue?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <ol>
  <li>Somebody suggested putting all on one-line. A decent suggestion. I tried it and it didn't work. </li>
  <li>I tried importing a very very simple json file named <code>simple.json</code> with the content <code>{'content' : 'simple'}</code> But I'm still getting the same error using <code>mongoimport</code>. (I can add documents from <code>mongo</code> shell just fine.) </li>
  </ol>
  
  <p>A sample of the JSON is below.</p>
  
  <p><strong>2_read.json</strong>    </p>
  
  <pre><code>{
    "name" : "John",
    "tasks" : [
        {
         "ix" : "1",
         "description" : "description of task",
         "tags": []
        }, 
       {
        "ix": "2",
        "description" : "description of task",
        "tags" : []
       }
         ]
  }
  </code></pre>
  
  <p>Thanks.</p>