title: How can I get this ajax request to post without error?
body: <p>Why is the following not working? I keep getting the following 500 error.</p>
  
  <blockquote>
    <p>"{"Message":"Invalid JSON primitive: question.","StackTrace":"   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()\r\n   at "</p>
  </blockquote>
  
  <pre><code>// button submit
      $('#btnCreatePoll').click(function ()
      {
          var fields = $('#createPoll input').serializeArray();       
  
          $.ajax({
              type: "POST",
              url: "PollManagerCreatePoll.aspx/test",
              data: fields,
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function (msg)
              {
                  // Do something interesting with msg.d here.
              }
          });
      });
  
  
  
  
    [WebMethod]
      public static void test (object data)
      {
          string test = "test";
      }
  </code></pre>