title: Posting JSON to controller MVC 5
body: <p>I am posting JSON to my controller, but the problem is I am getting the correct count in list. i.e if JSON has two elements list has count of two but null data. Following is the code via I am making and sending the JSON. I've use TabletoJSON for making the JSON.</p>
  
  <pre><code>        $('#productsObj').click(function () {
              var rawMaterials = $('#productsTable').tableToJSON(
                          {
                              ignoreColumns: [3]
                          });
  
             alert(JSON.stringify(rawMaterials));
              console.log(rawMaterials);
  
                  $.ajax({
                      url: "/Supplies/insertRawMaterial",
                      type: "POST",
                      data: JSON.stringify(rawMaterials),
                      contentType: "application/json; charset=utf-8",
                      dataType: "json",
                      traditional: true,
                      error: function (response) {
                          alert(response.responseText);
                      },
                      success: function (response) {
                          alert(data);
                          alert(response);
                      }
                  });
  
          });
  </code></pre>
  
  <p>Following is the controller action method which is receiving data.</p>
  
  <pre><code> public ActionResult insertRawMaterial(List&lt;String&gt; data)
      {
  
          if (data != null)
          {
              return Json("Success");
          }
          else
          {
              return Json("An Error Has occoured");
          }
  
      }
  </code></pre>
  
  <p>I am not sure where I am doing it wrong. Following is the JSON in alert.</p>
  
  <pre><code>[{"Raw Material Name":"Asphalt","Short Code":"AS02","Price":"20"}]
  </code></pre>