jQuery.ajax() works only with integers
<p>Everything works fine and dandy with integers/floats but when I enter a String into the textbox the data never gets recieved by the C# method <code>GetData</code> . </p>

<p>ASP CODE</p>

<pre><code>&lt;asp:TextBox id="txtBoxVersion" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;asp:ImageButton id="iconVersionSave" class="iconSave" runat="server" imageUrl="Resources/iconSave.png" OnClientClick="asyncServerCall(document.getElementById('txtBoxVersion').value); return false;"&gt;&lt;/asp:ImageButton&gt;
</code></pre>

<p>JQUERY</p>

<pre><code>function asyncServerCall(userData) 
{
    jQuery.ajax(
    {
        url: 'SurveyUpload.aspx/GetData',
        type: "POST",
        data: "{\"userData\":" + userData + "}",           //Data to be sent to the server !!WARNING!! Field Name must match C# parameter name
        contentType: "application/json; charset=utf-8",  //when sending data to the server
        dataType: "json",                                //The type of data that you're expecting back from the server.
        success:
            function (data) 
            {
                alert('Success');}
            }
    });
}
</code></pre>

<p>C#</p>

<pre><code>[WebMethod()]
        public static Boolean GetData(String userData)
        {
            System.Diagnostics.Debug.WriteLine(userData); //DEBUGGING

            return true;
        }
</code></pre>
