This is just a quick post about json compression and IIS 7.5. I always find myself repeating the same process when I have to configure a new server and finding the same issue with json compression. That’s why I’ve thought that it could be a good idea to write it down and share this with all of you.

Basically, you have two options:

  1. Follow this great article
  2. Go directly to the point:
    • Go to C:\Windows\System32\inetsrv\config
    • Open applicationHost.config file
    • Find httpCompression node and then dynamictypes node into it
    • Add this: <add mimeType=”application/json; charset=utf-8″ enabled=”true” />
    • Recycle the application pool

You’re done!