jQuery.param outputs "null" and "undefined" in the query string
|Reported by:||d@…||Owned by:|
Description (last modified by rwaldron)
This ticket is a followup to the discussion in http://forum.jquery.com/topic/should-null-be-passed-in-query-strings-generated-by-jquery-param where I am using jQuery.ajax to send data to a web service.
the output is
which the server will interpret as the strings "null" and "undefined" rather than as empty values.
My expected output would be:
where null values are coerced to empty string, and undefined values have no value. (This is the behaviour in Prototype 1.7, which seems reasonable.)
Change History (29)
comment:3 Changed 6 years ago by jaubourg
- Component changed from unfiled to ajax
- Priority changed from undecided to low