title: JQuery ajax not working when passing ip address in data with parameters
body: <p>the ajax method is not working when I'm passing ip address or any other parameter which has some special character.</p>
  
  <pre><code>$.ajax({
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  url: '/MyPage.aspx/MyMethod',
                  data: '{ name: ' + name + ', Ip:' + ip + '}',
                  dataType: 'json',
                  success: function (response) {
                      alert(response.d);
                  },
                  failure: function (response) {
                      alert(response.d);
                  }
              });
  </code></pre>
  
  <p>There is one solution by encoding the input in base 64. is there any other way ?</p>