How to configure Windows server to support JSON files

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.