Configure IIS6 or iis7 to support parsing JSON files
Abstract: The iis7 server in Windows Server 2003 IIS6 or Windows 7 supports parsing JSON files with the. JSON extension format.
I. Windows server2003
1. Mime settings:
In the HTTP header settings of IIS Site properties, select "file type"-"New Type" in mime ing to add a file type:
Associated Extension: *. JSON
Content type (MIME): Application/X-Javascript
2. Script map handler settings:
Or in the site properties of IIS, "main directory"-"application settings"-"configuration"-" ing"-"add ", the "Add/edit application extension ing" setting page is displayed.
Extension:. JSON
Running file: c: \ windows \ system32 \ inetsrv \ ASP. dll
Action: Get, post
3. Save and restart the IIS service to access the JSON file.
Ii. Windows 7
1. Select the website you want to set on the left (Figure 1), select the MIME type in IIS (Figure 2), and double-click it.
2. After Entering the page, select "add in progress" (medium 1). The "add MIME type" dialog box (medium 2) is displayed, and enter ". JSON ", enter" text/JSON "in the MIME type (do not use double quotation marks ). click OK and then restart the website.
3. If the preceding steps do not support reading JSON data, you need to add "handler ing" in IIS.
Restart the iis7 service.