According to RFC 4617 (http://www.ietf.org/rfc/rfc4627.txt),
"The MIME media type for JSON text is application/json."

Community seems to agree:
http://stackoverflow.com/questions/477816/the-right-json-content-type

However, in 'generic.json' Content-Type is set to 'text/json'
>> response.headers['Content-Type']='text/json'

Is there any reason for the type to be set as 'text'?
Is there any wide-spread client framework that requires 'text/json'
content-type?
If not, shouldn't it be modified to stick to standard?

(one of the reasons I ask is because JSONView, a FF addon, will
apparently only work for 'application/json' responses;  and this is
nice to have when developing with lots of AJAX....)

Reply via email to