3
To allow the exchange of data between the server and the browser, usually several media are adopted, for example when one wants to return a set of data existent in the database using data of type JSON.
There are these:
- application/json
- application/x-javascript
- text/javascript
- text/x-javascript
- text/x-json
Turns out I don’t use any of them to work with data outputs like JSON, normally use text/plain
, which is for simple text type returns.
What is the Correct MIME Type for JSON ?