[jQuery] Passed data inconsistency between $.ajax and $.post

[jQuery] Passed data inconsistency between $.ajax and $.post

I have noticed that $.ajax does not take a hash object for it's data
parameter like it's cousin $.post.
e.g.
var obj = {foo: 'abc', bar: '123}
$.ajax(type: 'post', data: obj, ...); // does not append post data (foo,
bar)
$.post(url,obj,...); // appends post data (foo => abc, bar => abc)
I see from the docs that $.ajax() takes a STRING for data (in HTTP GET
fashion).
Will future versions of $.ajax() also accept an object (to serialize) as
$.post() does? I think it'd be nice for consistency.
Cheers,
~ Brice
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/