title: json response in ajax undefined
body: <p>so here is my problem, I am returning a list of my model List from a controller through ajax. In response I am getting List but when i try to fill my datatable with this response it shows undefined everywhere
  My View: </p>
  
  <pre><code>function GetData() {
                  pid = $(this).data('id');
                  var singleValues = $("#network").val();
                  var id = $(this).find(":selected").val();
                  var network = { "network": id };
                  $.ajax({
                      type: 'POST',
                      url: '/Home/GetData',
                      contentType: 'application/json; charset=utf-8',
                      data: JSON.stringify(network),
                      success: function (response) {
                      //    console.log(response);
                          alert(response);
                              for (var i = 0; i &lt; response.d.length; i++) {
                                  $("#example").append("&lt;tr&gt;&lt;td&gt;" + response.d[i].ACCOUNT_TYPE_ID + "&lt;/td&gt;&lt;td&gt;" + response.d[i].ACCOUNT_ISO_CODE + "&lt;/td&gt;&lt;td&gt;" + response.d[i].ACCOUNT_DESC + "&lt;/td&gt;&lt;/tr&gt;");
                              debugger;
                          }
                      }
  
                  });
  </code></pre>
  
  <p>MY Controller:</p>
  
  <pre><code>[HttpPost]
      public DbDataModel[] GetData(string network)
      {
          List&lt;DbDataModel&gt; l = new List&lt;DbDataModel&gt;();
          DataTable db = GetDataSource(network);
          foreach (DataRow row in db.Rows)
          {
              DbDataModel model = new DbDataModel();
              model.Account_type_id = row["ACCOUNT_TYPE_ID"].ToString();
              model.Account_iso_code = row["ACCOUNT_ISO_CODE"].ToString();
              model.Account_desc = row["ACCOUNT_DESC"].ToString();
              l.Add(model);
          }
              return l.ToArray();
  
      }
  </code></pre>
  
  <p>My Model:</p>
  
  <pre><code> public class DbDataModel
  {
      public string Account_type_id { get; set; }
      public string Account_iso_code { get; set; }
      public string Account_desc { get; set; }
  }
  </code></pre>