From http://api.jquery.com/serializeArray/