title: Import json Mongodb
body: <p>So i imported a json file with</p>
  
  <p><code>mongoimport -d mydb -c mycollection --jsonArray &lt; glossary.json</code>
  the problem is that _id is stored as string in Db and not as an ObjectID</p>
  
  <p>Like this</p>
  
  <p><a href="https://i.stack.imgur.com/JiSjg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JiSjg.png" alt="enter image description here"></a></p>
  
  <p>So when i try to execute findbyId/findOne({_id:id}) request i get a null as a result
  I've tried the solution with <code>findOne({ _id: new ObjectID(id) }</code>  but it didn't work for me </p>
  
  <p>PS: the _id in the json file is a string also 
  is there is any way to convert _id from string to objectId or any other solution </p>
  
  <p>Sorry if the question is duplicate </p>