我可以使用哪些程序来可视化 JSON 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2826361/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which programs can I use to visualize a JSON File?
提问by hakan
I need a program to visualize a json response from a URL or a json file, which organizes the data so it's more human readable. Any suggestions?
我需要一个程序来可视化来自 URL 或 json 文件的 json 响应,该程序组织数据,使其更具人类可读性。有什么建议?
采纳答案by Sky Sanders
If you are looking for an interactive online app, http://jsbeautifier.org/works great and there are many suggestions for integrating the functionality into other environments.
如果您正在寻找交互式在线应用程序,http://jsbeautifier.org/效果很好,并且有很多建议可以将该功能集成到其他环境中。
You can either execute the core of jsbeautifier (beautify-cl.js) in a hosted js runtime or attempt to re-engineer it in the language of your choice.
您可以在托管的 js 运行时中执行 jsbeautifier (beautify-cl.js) 的核心,也可以尝试使用您选择的语言重新设计它。
If you need to reformat JSON at runtime in .net, I can suggest JSON.Net.
如果您需要在 .net 中在运行时重新格式化 JSON,我可以建议JSON.Net。
回答by Mariano Desanze
Great online tools:
很棒的在线工具:
Online JSON Parser
Excelent for detecting invalid json, and shows both json-parseand evalmethods.
JSON Visualization
Shows json as html tables and is good for detecting invalid json
Nice if you want to traverse json as a tree with properties (but bad for invalid json)
在线 JSON 解析器
非常适合检测无效的 json,并显示json-parse和eval方法。
JSON 可视化
将 json 显示为 html 表,有利于检测无效的 json
如果您想将 json 作为具有属性的树遍历,这很好(但对于无效的 json 不利)
Downloadable tool built on .NET:
基于 .NET 的可下载工具:
Has a stand-alone viewer similar to the online viewer of the same name, but also has pluginsfor Fiddler 2and Visual Studio 2005
具有类似于同名在线观众一个独立的浏览器,但也有插件的提琴手2和Visual Studio 2005中
回答by youknowone
- For mac: VisualJSONon appstore
- For web browser: JSONView as plugin
- For Terminal: httpie
- 对于mac:appstore 上的VisualJSON
- 对于网络浏览器:JSONView 作为插件
- 对于终端:httpie
回答by luvieere
回答by bloopletech
To toot my own horn, I've also written a JSON visualizer - it can even fetch a remote url and visualize the JSON it returns.
为了吹嘘自己的号角,我还编写了一个 JSON 可视化工具 - 它甚至可以获取远程 url 并可视化它返回的 JSON。
You can find it at http://json.bloople.net.
您可以在http://json.bloople.net 上找到它。
回答by Chad Brown
well to continue the trend here (a couple years later) here is another JSON Visualizer created by myself .. though this one a little bit prettier ;)
继续这里的趋势(几年后)这里是我自己创建的另一个 JSON Visualizer ..虽然这个有点漂亮;)

