A Rust CLI tool that merges two JSON files, handling nested structures and flagging conflicting keys. This is great for configuration managers, data overlays, or patching systems.
base.json
{
"name": "App",
"version": "1.0",
"features": {
"logging": true,
"cache": true
}
}
patch.json
{
"version": "2.0",
"features": {
"cache": false,
"metrics": true
}
}
{
"name": "App",
"version": "2.0",
"features": {
"logging": true,
"cache": false,
"metrics": true
}
}
cargo run -- base.json patch.json merged.json