#json-diff #diff #json #patch #json-file

jsondiff_rs

Rust 中的 JSON 差分实现

1 个不稳定版本

0.1.0 2023 年 3 月 12 日

#9 in #json-diff


jsondiffpatch_rs 中使用

MIT 许可证

30KB
853

diff

diff two json file

USAGE:
    jsondiffpath-cli diff <LEFT_JSON> <RIGHT_JSON>

ARGS:
    <LEFT_JSON>
    <RIGHT_JSON>

OPTIONS:
    -h, --help    Print help information

例如:

LEFT_JSON

{
    "bar": [
        1, 2, 3
    ],
    "foo": 10
}

RIGHT_JSON

{
    "bar": [
        2, 3, 4
    ],
    "foo": 11
}

diff

diff_example.png

依赖项

~0.8–1.7MB
~37K SLoC