Add data and display into data table in HTML page from web service using AJAX call
<p>I want add and display data into data table plugin from webservice using ajax call,but don't know how to catch data</p>
<p>HTML page:</p>
<pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
      var realPath = &quot;http://localhost:8080&quot;;
      var webServicePathm = realPath + &quot;/mt/gj/jg?&quot;;
      //var project = projectname.innerText;
      var parmUrl = &quot;tenantid=XYZ&quot;;
      var webCallUrl = webServicePathm + parmUrl;

      var table = $('#example').DataTable({
            &quot;ajax&quot;: ({
              type: &quot;GET&quot;,
              url: webCallUrl,
              data: {},
              datatype: 'json',
              complete: function(data) {
                var objdata = JSON.stringify(data);
              },
              error: function() {

              }

            }),
</code></pre>