Loading ...
Sorry, an error occurred while loading the content.

17Re: [json] Media type for JSON?

Expand Messages
  • Mark Miller
    Jul 26, 2005
      Martin Cooper wrote:
      > On 7/26/05, Mark Miller <markm@...> wrote:
      >
      >>Roland H. Alden wrote:
      >>
      >>>>Therefore, any media type registered for JSON would likely be
      >>>>application/json.
      >>>
      >>>
      >>>You would seem to be correct assuming RFC 2046 is the controlling
      >>>standard. Quoting from that:
      >>>
      >>>4.5. Application Media Type
      >>>
      >>> The "application" media type is to be used for discrete data which do
      >>> not fit in any of the other categories, and particularly for data to
      >>> be processed by some type of application program. This is
      >>> information which must be processed by an application before it is
      >>> viewable or usable by a user.
      >>
      >>
      >>What are the media types for html and xml?
      >
      >
      > Those are text/html and text/xml, respectively. See:
      >
      > http://www.iana.org/assignments/media-types/


      JSON is more like html & xml than it is like javascript. Therefore, reasoning
      by precedent and analogy, I think the right answer is text/json.


      --
      Text by me above is hereby placed in the public domain

      Cheers,
      --MarkM
    • Show all 13 messages in this topic