像属性浏览器一样工作的基于 GUI 或基于 Web 的 JSON 编辑器 [英] GUI-based or Web-based JSON editor that works like property explorer

查看:31
本文介绍了像属性浏览器一样工作的基于 GUI 或基于 Web 的 JSON 编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:这是对可能尚不存在的东西的请求,但我很长时间以来一直想建立一个.首先我会问是否有人见过类似的东西.

Background: This is a request for something that may not exist yet, but I've been meaning to build one for a long time. First I will ask if anyone has seen anything like it yet.

假设您有一个如下所示的任意 JSON 结构:

Suppose you have an arbitrary JSON structure like the following:

{
    'title_str':'My Employee List'
    ,'lastmod_str': '2009-June-15'
    ,'employee_table':[
        {'firstname':'john','lastname':'doe','age':'33',}
        ,{'firstname':'jane','lastname':'doe','age':'34',}
        ,{'firstname':'samuel','lastname':'doe','age':'35',}
    ]
}

问题:是否有基于 Web 的 JSON 编辑器可以采用这样的结构,并自动允许用户在用户友好的 GUI 中对其进行修改?

Question: Is there a web-based JSON editor that could take a structure like this, and automatically allow the user to modify this in a user-friendly GUI?

示例: 想象一个自动生成的 HTML 表单,它显示 2 个用于 title 和 lastmod 的 input-type-text 控件,以及一个包含三列三行的 input-type-text 控件表对于 arr_list ... 可以通过单击表中每行旁边的 [+][X] 来删除或添加其他行.

Example: Imagine an auto-generated HTML form that displays 2 input-type-text controls for both title and lastmod, and a table of input-type-text controls with three columns and three rows for arr_list ... with the ability to delete or add additional rows by clicking on a [+][X] next to each row in the table.

大创意:大创意"这背后是用户将能够指定任何任意(非递归)JSON 结构,然后还能够使用基于 GUI 的交互编辑结构(这将类似于XML 编辑器网格视图"XML 间谍).

Big Idea: The "big idea" behind this is that the user would be able to specify any arbitrary (non-recursive) JSON structure and then also be able to edit the structure with a GUI-based interaction (this would be similar to the "XML Editor Grid View" in XML Spy).

另见:

更新:(2014 年 7 月 31 日星期四 18:31:11)

已创建 github 存储库以进一步跟踪此已关闭的 SO 帖子.

A github repository has been created to further track this closed SO post.

推荐答案

更新: 为了回答我自己的问题,以下是我目前能够发现的内容.如果其他人有什么东西,我仍然有兴趣了解更多信息.

Update: In an effort to answer my own question, here is what I've been able to uncover so far. If anyone else out there has something, I'd still be interested to find out more.

  • http://knockoutjs.com/documentation/plugins-mapping.html ;; knockoutjs.com nice
  • http://jsonviewer.arianv.com/ ;; Cute minimal one that works offline
  • http://www.alkemis.com/jsonEditor.htm ; this one looks pretty nice
  • http://www.thomasfrank.se/json_editor.html
  • http://www.decafbad.com/2005/07/map-test/tree2.html Outline editor, not really JSON
  • http://json.bubblemix.net/ Visualise JSON structute, edit inline and export back to prettified JSON.
  • http://jsoneditoronline.org/ Example added by StackOverflow thread participant. Source: https://github.com/josdejong/jsoneditor
  • http://jsonmate.com/
  • http://jsonviewer.stack.hu/
  • mb21.github.io/JSONedit, built as an Angular directive

基于 JSON Schema

商业(无意或暗示背书,可能满足也可能不满足要求)

  • Liquid XML - JSON Schema Editor Graphical JSON Schema editor and validator.
  • http://www.altova.com/download-json-editor.html
  • XML ValidatorBuddy - JSON and XML editor supports JSON syntax-checking, syntax-coloring, auto-completion, JSON Pointer evaluation and JSON Schema validation.

jQuery

YAML

另见

这篇关于像属性浏览器一样工作的基于 GUI 或基于 Web 的 JSON 编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆