how can i use application/json conntent-type header in html javascript code example
Example 1: http content type json
application/json
Example 2: what is the correct json content type
For JSON text:
application/json
The MIME media type for JSON text is application/json.
The default encoding is UTF-8. (Source: RFC 4627).
For JSONP (runnable javascript) with callback:
application/javascript