mvc 2 json结果输出

发布于 2024-09-26 05:24:47 字数 64 浏览 0 评论 0原文

我如何查看 mvc 2 jsonresult 的原始 json 输出?我需要这个来调试结果。

谢谢

how can i see the raw json output of mvc 2 jsonresult? i need this to enable me debug the results.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2024-10-03 05:24:47

有几种方法可以做到这一点。如果您正在为 GET 请求提供服务,则只需导航到将在浏览器中返回 JSON 的 URL。我喜欢使用 Firefox 的 JSON View 插件来实现此目的:

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

如果您想在 ajax 请求期间对此进行调试,我建议使用 firefox 的 firebug 插件:

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

' net' 选项卡将允许您查看所有 http 请求的发出过程。然后,您可以单击“json”选项卡来查看输出。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文