Submit Form With Added JSON Data : <p>I have a form on a webpage and I also have some JSON data in Javascript, how do I use JQuery to append the JSON data on form post?  Here are some example:</p>

<pre><code>&lt;form action="server.cshtml"&gt;

&lt;/form&gt;

&lt;script&gt;
    var data = {
        data1: "aaa",
        data2: "bbb"
    };

    $("form").submit();
&lt;/script&gt;
</code></pre>
