Jquery validation

Jquery validation

I am trying to implement something similar to the sample shown here:

http://docs.jquery.com/Plugins/Validation/Methods/remote

  1. $("#myform").validate({
  2.   rules: {
  3.     email: {
  4.       required: true,
  5.       email: true,
  6.       remote: {
  7.         url: "check-email.php",
  8.         type: "post",
  9.         data: {
  10.           username: function() {
  11.             return $("#username").val();
  12.           }
  13.         }
  14.       }
  15.     }
  16.   }
  17. });
However, I am trying to get the data to go across as a json object. No matter what I try it gets sent across as a standard name value pair. EX: username=usernamevalue Which would be fine, but for some reason my web service ignores it. I am using page method in an asp.net page if that makes any difference.