express-get-json Flashcards
1
Q
What is the appropriate Content-Type header for HTTP messages that contain JSON in their bodies?
A
JSON has to be correctly interpreted by the browser to be used appropriately. text/plain was typically used for JSON, but according to IANA, the official MIME type for JSON is application/json .