我可以使用哪些程序来可视化 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 17:29:38  来源:igfitidea点击:

Which programs can I use to visualize a JSON File?

json

提问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

  • Online JSON Viewer

    Nice if you want to traverse json as a tree with properties (but bad for invalid json)

  • 在线 JSON 解析器

    非常适合检测无效的 json,并显示json-parseeval方法。

  • JSON 可视化

    将 json 显示为 html 表,有利于检测无效的 json

  • 在线 JSON 查看器

    如果您想将 json 作为具有属性的树遍历,这很好(但对于无效的 json 不利)

Downloadable tool built on .NET:

基于 .NET 的可下载工具:

  • JSON Viewer

    Has a stand-alone viewer similar to the online viewer of the same name, but also has pluginsfor Fiddler 2and Visual Studio 2005

  • JSON 查看器

    具有类似于同名在线观众一个独立的浏览器,但也有插件提琴手2Visual Studio 2005中

回答by youknowone

回答by luvieere

I use JsonLint, a web based validator and reformatter for JSON. Upon validation, it also reformats the JSON file so that it is easier to read.

我使用JsonLint,一个基于 Web 的验证器和 JSON 重新格式化程序。验证后,它还会重新格式化 JSON 文件,使其更易于阅读。

回答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 ..虽然这个有点漂亮;)

visualizer.json2html.com

Visualizer.json2html.com

回答by Linas

I've written my own lightweight yet quite powerful JSON Viewer. You can get it here.

我已经编写了自己的轻量级但非常强大的 JSON 查看器。你可以在这里得到它。