有没有方便的工具来查看/分析 JSON 响应?

发布于 2024-08-09 07:29:59 字数 153 浏览 2 评论 0原文

我发现使用浏览器查看 JSON 响应很不方便,然后将代码复制/粘贴到编辑器中,然后必须添加换行符以使其更具可读性。

如果有一个工具可以让我输入 URL 并以更可用的格式接收 JSON,那就太好了,比如向下钻取树,或者至少对文本进行某种颜色编码。

推荐什么工具?

I find it inconvenient using my browser to view JSON responses, then copy/paste the code into my editor, then have to put line-breaks in to make it more readable.

It would be great to have a tool that allows me to enter a URL and receive a JSON in a more usable format, like say, a drill-down tree, or at least some color-coding of the text.

What tools are recommended?

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

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

发布评论

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

评论(2

四叶草在未来唯美盛开 2024-08-16 07:29:59

当在 Firefox 中不使用 Firebug 时,我使用了 JsonViewer 并粘贴到我的 JSON 文本中。

When not using Firebug in Firefox, I've used JsonViewer and pasted in my JSON text.

随遇而安 2024-08-16 07:29:59

使用 Google Chrome 中的 javascript 开发人员窗口。您可以深入了解任何对象。

只需输入“JSON.parse(your_json_string)”,然后点击即可!

Use the javascript developer window in Google Chrome. You can drill down into any objects.

Just type e.g. "JSON.parse(your_json_string)" and click away!

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