title: cannot get json values after parsing
body: <p>This works (alert shows : value1,value2)</p>
  
  <pre><code>$.ajax({
              type: 'GET',
              //url: '@Url.Action("GetCustomerInfo","CustomerInfo")', 
              url: "../CustomerInfo/GetCustomerInfo",  
              dataType: "JSON",
              contentType: "application/json",
              success: function (customerInfoList) {
                alert(customerInfoList);
                }
          }); 
  </code></pre>
  
  <p>but not this (alert not shown- chrome debugger shows : Unexpected error occured!)</p>
  
  <pre><code> $.ajax({
              type: 'GET',
              //url: '@Url.Action("GetCustomerInfo","CustomerInfo")', 
              url: "../CustomerInfo/GetCustomerInfo",  
              dataType: "JSON",
              contentType: "application/json",
              success: function (customerInfoList) {
                  var obj = JSON.parse(customerInfoList);
                  alert(obj);
                       }
          }); 
  </code></pre>
  
  <p>this is used on on ASP.NET MVC project;In controller following snippet used</p>
  
  <pre><code>List&lt;string&gt; customerInfoList = new List&lt;string&gt;();
  
          if (!string.IsNullOrEmpty(customerId))
          {
              customerInfoList = customerInfoRepo.GetCustomerInfo(customerId);
          }
  
          return Json(customerInfoList, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>whats wrong? </p>
  
  <p>UPDATE:
  i need to set customer Id and name from that list to a table in the cshtml - because i did the following to fill the list before sending list to the view.</p>
  
  <pre><code>using (dbContext)
                  {
  
                      var customerInfo = (from c in dbContext.Customers
                                          where c.CustomerID == customerId
                          select c).ToList();
  
                      foreach (var x in customerInfo)
                      {
                          customerInfoList.Add(x.CustomerID);
                          customerInfoList.Add(x.Name);
                      }
  
                      return customerInfoList;
                  }
  </code></pre>