title: How to save JSON array in to mongodb collection
body: <p>I am trying to save the following array into my document in <strong>mongodb</strong></p>
  
  <pre><code>    {"Category_Id":"54c9c206e1f512456ada778b","Sub_category_Id":"54c9c24ee1f512456ada778d",
   "features":[{"specification_field_type":"textbox","specification_name":"color","_id":"551e5f2e3bbe4691142bdeba","__v":0,"$$hashKey":"object:95"},
               {"specification_field_type":"textbox","specification_name":"Call Features","_id":"551e616d3bbe4691142bdebf","__v":0,"$$hashKey":"object:97"}]}
  </code></pre>
  
  <p>Here is my <strong>node.js</strong> code to save the post values in <strong>mongodb</strong></p>
  
  <pre><code>var Category_Id = req.body.Category_Id;
  var Sub_category_Id = req.body.Sub_category_Id;
          var features = req.body.features;
  var property =new db.properties();
              property.Category_Id = Category_Id;
              property.Sub_category_Id = Sub_category_Id;
              property.features = features;
  
  property.save(function (err){
                              var message = JSON.parse('{"status":"success","message":"Features added"}');
                              return res.send(200, message);
      }
  </code></pre>
  
  <p>Though the query is executed, the <strong>features</strong> information is saved in this way
  <img src="https://i.stack.imgur.com/LroYO.png" alt="enter image description here"></p>
  
  <p><strong>Collection schema is</strong> </p>
  
  <pre><code>var properties = new Schema({
      Category_Id : { type: String},
      Sub_category_Id : { type: String},
      features : { type: String}      
  });
  </code></pre>
  
  <p>Can someone help me to fix this. Thanks.</p>