IIS parsing JSON's configuration method Rollup _win server

Source: Internet
Author: User
Tags rfc

IIS6.0

1. Open IIS Add MIME entry

Association extension: *.json
content Type (MIME):application/x-javascript

2. Add Mappings:

Location in IIS corresponding site right-key properties: "Home Directory"-"Application Settings"-"Configuration"-"mapping"-"Add" opens "Add/Edit Application extension mappings"
Name extension: . JSON
Run File:C:\WINDOWS\system32\inetsrv\asp.dll
action:get,post

iis7.x IIS8

1, in "MIME type" "Add" a file name extension is ". Json", MIME type is Text/json (also can be application/x-javascript)

2, and then "Add script Map" in "handler mapping", the request path is: *.json, executable file is C:/windows/system32/inetsrv/asp.dll.

If Asp.dll is not found, go to Control Panel--> program--> turn on and off Windows features--->internet Information services---> World Wide Web Services--> application development features, open ASP support. Open it immediately and you can find the Asp.dll file.
Content Type (MIME): Text/json

Then we access through the browser: Http://localhost/xxx.json, you should be able to display JSON data, if the download prompts, check the above steps if there is a spelling error, if not, restart the computer, should be OK.

Add:

The small series then flipped through some data and found that in 2006 JSON had registered a MIME type of Application/json

So the above MIME type, everyone changed to Application/json

Attached information:

RFC 4627 "The Application/json Media type for JavaScript Object notation (JSON)" registered JSON as a MIME type in July 2006: application/ Json.

See:

ECMA-404 the JSON Data interchange Format
RFC 4627-the Application/json Media Type for JavaScript Object notation (JSON)
Json:http://json.org/json-zh.html
Mime:http://www.iana.org/assignments/media-types/media-types.xhtml
Application/json:http://www.iana.org/assignments/media-types/application/json

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: info-contact@alibabacloud.com 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.