title: Getting [object Object] error when call JQuery Ajax function for Json data
body: <p>I'm getting the following error when try to read json data from asp.net function, here is the image error 
  <img src="https://i.stack.imgur.com/so036.png" alt="enter image description here"></p>
  
  <p>Here is the jQuery code,</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#getdata").click(function () {
              $.ajax({
                  type: "POST",
                  url: "Default.aspx/GetData",                   
                  dataType: "json",
                  contentType: "application/json; charset=utf-8",
                  success: function (data) {
                      alert(data.d);
                      // $("#company").html(data.d);
                        console.log(data);
                  },
                  error: function (error) {
                      alert(error);
                  }
              });
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>what wrong I did to get this error. Appreciate your any help.
  getting this error from console log,<code>console.log(error)</code>
  <img src="https://i.stack.imgur.com/dPR8V.png" alt="enter image description here"></p>