-3

Possible Duplicate:
The *right* JSON content type?

I am using Java for the server side programming, and I want to return JSON data from the server side. I have come across the several return formats of JSON as below

application/json
text/javascript
text/x-json
application/x-javascript
text/x-javascript

Out of which, according to the standard, what should be used as the correct format of the MIME type?

Community
  • 1
  • 1
Bhavik Ambani
  • 6,357
  • 14
  • 52
  • 84

1 Answers1

6

Here, RFC 4627, which is the industry standard for the MIME types of JSON, says that the currect format of the JSON response MIME type should be application/json.

Bhavik Ambani
  • 6,357
  • 14
  • 52
  • 84