jquery/jquery — pull request #891 by tedliang (2012-08-11 06:29:57+00:00)
Title: Customizable serializeArray result

Make the result of serializeArray customizable. For example:
$('#form').serializeArray(function(elem,val){return {name:elem.name, value:val, type:elem.type};});
This produces the following data structure:
[
{
name: "a",
value: "1",
type: "text"
},
{
name: "b",
value: "2",
type: "text"
},
{
name: "c",
value: "3",
type: "hidden"
},
....
]