title: How to iterate over an array of objects in the request body
body: <p>I am sending an array of objects to the server (as below), the server must receive the objects and add them to the mongodb. I'm new to node.js, I usually deal with the keys inside the rcevived request body (req.body). But here, the keys are the objects. How can I iterate over them?</p>
  
  <pre><code>[
      {
          id: "1",
          Name: "John"
      },
      {
          id: "2",
          Name: "Mark"
      },
      {   
          id: "3",
          Name: "Domi"
      }  
  ]
  </code></pre>
  
  <p>Server Code:</p>
  
  <pre><code>server.get('/user', function (req, res, next) {
  //iterate over the objects in req.body
  });
  </code></pre>
  
  <p>When I want to send one object I can easily get the the request content by req.body.id and req.body.Name, so how to do it with multiple objects inside the request body?</p>