title: how to import json file in mongodb?
body: <p>i am new to mongodb database . i a creating an application in which data store as a json file.
  what i want to do is import that data into mongodb and then display it on command prompt.
  i already tried following commands but error is displaying <code>Failure parsing josn near: }</code>
  my command is:</p>
  
  <pre>mongoimport -d mydb -c mydb --type json --file glossary.json --headerline</pre>
  
  <p>i put json file in c:\mongodb\bin\glossary.json
  thanx i advace.</p>
  
  <pre><code>{
  "glossary": {
      "title": "example glossary",
      "GlossDiv": {
          "title": "S",
          "GlossList": {
              "GlossEntry": {
                  "ID": "SGML",
                  "SortAs": "SGML",
                  "GlossTerm": "Standard Generalized Markup Language",
                  "Acronym": "SGML",
                  "Abbrev": "ISO 8879:1986",
                  "GlossDef": {
                      "para": "A meta-markup language, used to create markup languages such as DocBook.",
                      "GlossSeeAlso": ["GML", "XML"]
                  },
                  "GlossSee": "markup"
              }
          }
      }
  }
  }
  </code></pre>