与 npm jsoneditor 包并排 JSON 差异

Side by side JSON diff with the npm jsoneditor package

我正在寻找类似 this 的内容:

使用 jsoneditor npm package.

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

有谁知道包中是否已经支持它?

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

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

如有任何关于以上几点的建议,我们将不胜感激。

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

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