How can I convince IE to simply display application/json rather than offer to download it?

前端 未结 9 610
野的像风
野的像风 2020-11-22 14:57

While debugging jQuery apps that use AJAX, I often have the need to see the json that is being returned by the service to the browser. So I\'ll drop the URL for the JSON da

9条回答
  •  余生分开走
    2020-11-22 15:42

    If you are okay with just having IE open the JSON into a notepad, you can change your system's default program for .json files to Notepad.

    To do this, create or find a .json file, right mouse click, and select "Open With" or "Choose Default Program."

    This might come in handy if you by chance want to use Internet Explorer but your IT company wont let you edit your registry. Otherwise, I recommend the above answers.

提交回复
热议问题