Get key-value pairs from serializeArray?

Get key-value pairs from serializeArray?

serializeArray returns [{name:"foo",value:"bar"},{name:"baz",value:"bat"}]


If a user simply wants key-value pairs that reflect the form's current state (as just came up in #jQuery) , he has to write the logic himself, and then doesn't get access to the useful tests that take place in the .filter() in serializeArray().  Or needs to .serialize() to a string and then parse that back out into an object, uggerz. 


One could use something like Ben Alman's $.deparam to do that, too, however, I think it makes sense to leverage the logic that exists within serializeArray, rather than force the user to go back and forth.


It would be convenient if the user could pass a flag into serialize that would allow the return of a simple object. This isn't actually much code, I'll ticket/write a patch if people actually think this is actually useful.