In order to allow data to be exchanged between the server and the browser, a number of means are usually adopted, for example when returning an existing dataset in the database using JSON .
There are these here:
- application / json
- application / x-javascript
- text / javascript
- text / x-javascript
- text / x-json
It turns out that I do not use any of them to work with data output of type JSON , usually using text/plain
, which is for simple type returns.
What is the correct MIME Type for JSON ?