Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct MIME Type for JSON? [duplicate]

Tags:

json

I am having problems converting the JSON string in Chrome.

Thank you!

like image 312
user1140202 Avatar asked Jan 10 '12 06:01

user1140202


People also ask

What MIME type is the unofficial one for JSON?

The unofficial MIME type " text/json " or the content-type " text/javascript " are also supported for legacy reasons by many service providers, browsers, servers, web applications, libraries, frameworks, and APIs.

What is MIME type in REST API?

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

What is the difference between application JSON and text JSON?

In other words: text if it is readable text (which JSON is) application if its unreadable binary data (which JSON is not)


1 Answers

The MIME media type for JSON text is application/json

Hope this helps

like image 148
Jagdish.UC Avatar answered Sep 26 '22 04:09

Jagdish.UC