开发者

mvc 2 jsonresult output

开发者 https://www.devze.com 2023-01-18 23:11 出处:网络
how can i see the raw json 开发者_Python百科output of mvc 2 jsonresult? i need this to enable me debug the results.

how can i see the raw json 开发者_Python百科output of mvc 2 jsonresult? i need this to enable me debug the results.

thanks


There are a few ways to do this. If you are servicing a GET request, you can just navigate to a url that will return your JSON in the browser. I like to use the JSON View plugin for firefox for this purpose:

https://addons.mozilla.org/en-US/firefox/addon/10869/

If you are would like to debug this during an ajax request, I suggest using the firebug plugin for firefox:

https://addons.mozilla.org/en-US/firefox/addon/1843/

The 'net' tab will allow you to see all http requests go by as they are made. You can then click the 'json' tab to view the output.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号