Back to list
Views:   14.6K
Replies:  1
Archived

What is the best MIME type for JSON content?

I have used both XML and JSON content types when working on webservices.

XML is fairly straightforward. We usually use


  • application/xml

JSON though seems to be supporting multiple MIME types.  I have seen these: 

  • application/json
  • text/json

  • application/x-javascript
  • text/x-javascript

  • application/x-json
  • text/x-json

By looking at XML it seems that the correct JSON counterpart is application/json.
But does anyone know what the official standard is?






Juan Perez, Apr 20, 2013
I have used "application/json" in a Sencha app and it works great for IIS. IMO - others are optional formats.
May 03, 2013
Reply 1
According to RFC 4627 is is application/json
Use that one and you'll be fine.

Ian Barrymore, Aug 08, 2013


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2