content-type:text / json和application / json之间的确切区别是什么? [英] What is the exact difference between content-type: text/json and application/json?

查看:3155
本文介绍了content-type:text / json和application / json之间的确切区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 内容类型:text / json

  2. 内容-type:application / json

我一直在随机使用它们,从来没有在两个http标头中找到任何输出差异?

I've been using them randomly and never find any output difference in both http headers?

推荐答案

application / json :json的官方MIME类型

application/json: Official MIME type for json

text / x-json :在application / json正式注册之前json的实验(非官方)MIME类型

text/x-json: Experimental(unofficial) MIME type for json before application/json got officially registered

这篇关于content-type:text / json和application / json之间的确切区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆