dsh-json-diff
其他 活跃维护

dsh-json-diff

uckkk/dsh-json-diff

语义逻辑深度对比两份JSON内容,精准识别新增、删除、修改的键路径,跳过表层格式差异干扰,输出可直接用于后续处理的结构化变更结果,无需手动逐行核对内容,排查JSON差异效率远高于人工比对。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-json-diff
git clone https://github.com/uckkk/dsh-json-diff.git
git clone git@github.com:uckkk/dsh-json-diff.git
README.md main

dsh-json-diff · JSON 语义对比

深比较两个 JSON,返回新增/删除/变更的键路径。纯 Node 实现。

提供的工具

工具 作用
diff_json 深比较 JSON → 差异路径

安装

dsh plugin add dsh-json-diff

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-json-diff"。

用法示例

对比这两个接口响应有什么变化
→ 调用 diff_json(a=<旧>, b=<新>)

安装

dsh plugin add github:uckkk/dsh-json-diff

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-json-diff

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。