title: Web API post array but frombody is always null
body: <p>I have array in the following format which i need to post to an API :</p>
  
  <blockquote>
    <p>console.log(addserverList);</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/zGHVW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zGHVW.png" alt="Array"></a></p>
  
  <p>I want to pass this to a post method of api </p>
  
  <pre><code>   const options = {headers: {'Content-Type': 'application/json'}};
              return this.http.post(           'http://localhost:54721/api/BulkUpload/SaveBulkUploadData',addserverList,options)
  </code></pre>
  
  <p>I am able post to api, but the data passes is always showing as NULL</p>
  
  <p><a href="https://i.stack.imgur.com/WXmqY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WXmqY.png" alt="Null value"></a></p>
  
  <p>Model i structured like below:</p>
  
  <p><a href="https://i.stack.imgur.com/m29qs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m29qs.png" alt="model"></a></p>
  
  <p><strong>Function to generate array</strong></p>
  
  <pre><code>private extractData(res: Response) {
  
          let csvData = res['_body'] || '';
          let allTextLines = csvData.split(/\r\n|\n/);
          let headers = allTextLines[0].split(',');
          let lines = [];
  
          for ( let i = 0; i &lt; allTextLines.length; i++) {
              // split content based on comma
              let data = allTextLines[i].split(',');
              if (data.length == headers.length) {
                  let tarr = [];
                  for ( let j = 0; j &lt; headers.length; j++) {
                      tarr.push(data[j]);
                  }
                  lines.push(tarr);
              }
          }
          this.csvData = lines;
  
         // console.log(JSON.stringify(this.csvData));
          this.saveBulkUpload();  
        }
  </code></pre>