Feature Request: $.ajax(): Detect json via res pons e header

Feature Request: $.ajax(): Detect json via res pons e header

<span style="color:navy; font-family:Prelude, Verdana, san-serif; "><span style="font-family:Prelude, Verdana, san-serif;">It doesn't make a difference to me if my one line gets to ride with 1.4 or not. The 'why' is because it was requested and I replied that I had a 1.3.2 copy that I had hacked to do this... John mentioned filing a ticket. 
As for my not providing unit test cases, I can simply reply: 9 months real world usage in every application that I've written with jquery have proven, to me, that it works.
The commit I made to my fork is based on the most recent version of <a href="http://ajax.js" type="url">ajax.js</a> in the master on github.
The 'how'... Its shockingly simple: it copies the same behaviour as the xml detection. Nothing special.
Rick
</span><span id="signature"><div style="font-family: arial, sans-serif; font-size: 12px;color: #999999;">-- Sent from my Palm Prē</div>
</span><hr align="left" style="width:75%">Julian Aubourg wrote:
I'm a bit curious as to how (and why) you intend to implement this, seeing as the ajax revamping I've been working on uses an array of dataTypes.
For example s.datTypes = ["jsonp","xml"] means: get an object (a string in that case) over jsonp that'll get parsed as xml (and this is actually working and being unit tested ;))
If your intention is to give a list of accepted dataTypes, I'd rather go for a string of the form "json | xml" if you get my idea.