有没有在线的JSONviewer/formatter可以显示属性的路径?

Is there an online JSON viewer/formatter that can show the path to an attribute?

有很多不错的在线 JSON 查看器,我可以将其粘贴到结构中,它会漂亮地打印出来..但我发现有一点很有用(对于复杂的 JSON 结构)是为了能够点击一个属性,它会显示 JavaScript 对象路径以到达它,例如

Example image showing what I mean :)

我还没有找到任何可以执行此操作的在线(或离线)查看器。我想没有人知道吗?

提前致谢。

您可以访问我的站点:https://thisyogesh.github.io/jsonmaker/

希望对您有所帮助!

您可以像 JsonLint 一样尝试 JSON 验证器 - 您只需粘贴格式正确的 JSON 文本,它就会为您验证并 pretty-print/display。还有 Chrome 的扩展(JSON 格式化程序和 JSON 查看器)- 这些将为您提供您想要的 expand/collapse 功能。