title: How to serialise an object to json and send it to a web service?
body: <p>How to serialise an object to json and send it to a web service?</p>
  
  <pre><code>var object = something....
  function BindJson() {
          $.ajax({
              type: "POST",
              url: "NewPage.aspx/GetJson",
              data: "{}",
              contentType: "application/json",
              dataType: "json",
              success: function (data) {
  
              }
          })
      }
  
  &lt;body onload="BindJson();"&gt;
  </code></pre>
  
  <p>Server:</p>
  
  <pre><code>[WebMethod]
          public static string GetSerializedJsonObject()
          {
              return "";
          }
  </code></pre>