JSON diff 与 npm jsoneditor 包

问题描述

我正在寻找类似 this内容

enter image description here

使用 jsoneditor npm package

我没有在 the API 中找到任何并排比较或“差异”模式。

有谁知道这个包是否已经支持

或者他们推荐的另一个提供并排差异的软件包?

否则看起来我将不得不通过单独的 diff 包运行 json,并根据输出使用底层 ACE 编辑器的突出显示 API 来模拟 jsoneditoronline diff 功能

对以上几点的任何建议将不胜感激。

解决方法

基于此评论 - https://www.github.com/josdejong/jsoneditor/issues/1178 它需要自定义实现。

这个链接可能是一个好的开始: https://github.com/josdejong/jsoneditor/blob/develop/examples/20_custom_css_style_for_nodes.html

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...