What is the exact difference between content-type: text/json and application/json?

Girish picture Girish · Mar 14, 2014 · Viewed 32.9k times · Source

What is the exact difference between

  1. Content-type: text/json
  2. Content-type: application/json

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

Answer

Arjit picture Arjit · Mar 14, 2014

application/json: Official MIME type for json

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