Should null be passed in query strings generated by jQuery.param?

Should null be passed in query strings generated by jQuery.param?

Currently,

  1. jQuery.param({"foo":null})
returns

  1. "foo=null"
On the server, this gets treated as the string "null", even though a string was not passed in.

I think that it would be a good idea to return this instead:

  1. "foo="
which is at least closer to null.

The patch would be to change

  1. s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
into

  1. s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value === null ? "" : value );