marioizquierdo/jquery.serializeJSON — pull request #2 by cyberwombat (2012-09-03 17:41:04+00:00)
Title: Fix to handle select multiple inputs

If you use something such as:
<select name="category" multiple>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>

And all 3 values are selected by the user then only the last one will be used as there is no check for an existing field. So the result will be:

{ category: "c" }

With this fix it checks for an existing category field and the result of the serialization is now:

{ category: ["a", "b", "c" ] }