If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Content-type for JSON files should be application/json, not text/json

VERIFIED WONTFIX

Status

addons.mozilla.org Graveyard
Statistics
--
trivial
VERIFIED WONTFIX
7 years ago
2 years ago

People

(Reporter: stephend, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

7 years ago
Our Content-Type for https://preview.addons.mozilla.org/z/en-US/firefox/addon/1865/statistics/downloads-day-20100115-20100715.json is:

text/json

But it should be application/json
why?
(Reporter)

Comment 2

7 years ago
(In reply to comment #1)
> why?

http://stackoverflow.com/questions/477816/the-right-json-content-type
I prefer JSON to be readable in the browser. Anything consuming JSON should be able to deal with text JSON.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
Sorry for reopening, but I disagree. If the standard says application/json, then you need to fix your browser[1], instead of using the wrong mime type :(

[1] https://addons.mozilla.org/en-US/firefox/addon/8207/
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---

Updated

7 years ago
Severity: normal → trivial
As far as I can tell, it is not a standard. http://www.ietf.org/rfc/rfc4627.txt explicitly says it is not a standard. IANA has registered application/json as a valid type but that doesn't mean we have to use it.

And I think usability trumps a pseduostandard, especially one that will result in most of the people viewing it being immediately annoyed.
WONTFIXing again since no one has challenged my last comment.
Status: REOPENED → RESOLVED
Last Resolved: 7 years ago7 years ago
Resolution: --- → WONTFIX
Verifying that you didn't read the standard ;)
Status: RESOLVED → VERIFIED
(Assignee)

Updated

2 years ago
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.