JQuery parameter serialization without the bracket mess
<p>I'm using JQuery to make a JSON request back to the server and it seems that it's parameter serialization is hard-coded to what PHP expects instead of being generic in nature. Basically I have an object that looks like this:</p>

<pre><code>{
    foo: 1,
    bar : [1, 3, 5]
}
</code></pre>

<p>And it serializes it to:</p>

<pre><code>foo=1&amp;bar[]=1&amp;bar[]=3&amp;bar[]=5
</code></pre>

<p>Is there anyway to make it just do?</p>

<pre><code>foo=1&amp;bar=1&amp;bar=3&amp;bar=5
</code></pre>

<p>It seems to me that jQuery shouldn't be so tied to what a handful of server side frameworks expect as a naming convention. If I wanted my param to be called <code>bar[]</code> I could easily name it that myself if it's what my server-side code expects.</p>
