Looking for a jquery plugin to serialize a form to an object
<p>I'm looking for a jQuery function or plugin that serializes form inputs to an object using the naming convention for deep-serialization supported by <a href="http://api.jquery.com/jQuery.param/" rel="nofollow">param()</a> in jQuery 1.4:</p>

<pre><code>&lt;form&gt;
  &lt;input name="a[b]" value="1"/&gt;
  &lt;input name="a[c]" value="2"/&gt;
  &lt;input name="d[]" value="3"/&gt;
  &lt;input name="d[]" value="4"/&gt;
  &lt;input name="d[2][e]" value="5"/&gt;
&lt;/form&gt;

$('form').serializeObject(); // { a: { b:"1",c:"2" }, d: ["3","4",{ e:"5" }] }
</code></pre>

<p>Prototype's <a href="http://api.prototypejs.org/dom/form/serialize/" rel="nofollow">Form.serialize</a> method can do exactly this. What's the jQuery equivalent? I found <a href="http://benalman.com/projects/jquery-misc-plugins/#serializeobject" rel="nofollow">this plugin</a> but it doesn't follow this naming convention.</p>
