title: Ajax data source (objects) :TypeError: f is undefined
body: <p>I am working on my ASP.Net web application where I have to populate an HTML table with Ajax data source for which I am making a use of jQuery DataTables plugin. </p>
  
  <p><strong>HTML code:</strong></p>
  
  <pre><code>&lt;table class="table table-striped table-hover table-bordered display" id="example" cellspacing="0" width="100%"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Prctice Group Risk No
              &lt;/th&gt;
              &lt;th&gt;Practice_Group
              &lt;/th&gt;
              &lt;th&gt;Risk_Category
              &lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>JavaScript Code:</strong></p>
  
  <pre><code>$('#example').DataTable({
      "ajax": {
          "dataType": 'json',
          "contentType": "application/json; charset=utf-8",
          "type": "POST",
          "url":"index.aspx/Risky"
      },
      "columns": [
          { "data": "Prctice_Group_Risk_No" },
          { "data": "Practice_Group" },
          { "data": "Risk_Category" }]
  });
  </code></pre>
  
  <p>And here is my Web Method I am making a call to to get a JSON response of list of objects </p>
  
  <pre><code> [WebMethod]
   [ScriptMethod]
      public static string Risky()
      {
          return JsonConvert.SerializeObject(riskList);
      }
  </code></pre>
  
  <p><strong>JSON response from server:</strong></p>
  
  <pre><code>d:"[{"Prctice_Group_Risk_No":1,"Practice_Group":"M&amp;A","Risk_Category":"Conflicts of Interests"},{"Prctice_Group_Risk_No":2,"Practice_Group":"abc","Risk_Category":"Client Care and Communication"}]
  </code></pre>
  
  <p>The JSON response returned seems fine to me as described in the official site of jquery DataTables 
  <a href="http://www.datatables.net/examples/ajax/objects.html" rel="noreferrer">http://www.datatables.net/examples/ajax/objects.html</a></p>
  
  <p>But no data is been populated in the table and I get the following error in my Firebug Console </p>
  
  <blockquote>
    <p>TypeError: f is undefined</p>
  </blockquote>