title: Covert form data to JSON string
body: <pre><code>&lt;form name = 'test' &gt;
      &lt;input type='text' name = 'login'&gt;
      &lt;input type='email' name = 'email'&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If I use <code>JSON.serialize($(form)).serializeArray();</code><br>
  I get <code>[{"name":"login","value":"a value"},{"name":"email","value":"a email"}]</code> while I need <strong><code>{"login":"a login","email":"a email"}</code></strong>. How to do that?? </p>