httpheadercontent-type

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


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?


Solution

  • application/json: Official MIME type for json

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