我希望将我的JSON合并为一个,同时主导一个覆盖值.
例如:
下属JSON:
{
"test": {
"test1": true,
"test2": {
"test3": [1, 2, 3]
}
}
}
主导JSON:
{
"test": {
"test2": null,
"test3": "string"
},
"test2": "newValue"
}
合并结果:
{
"test": {
"test1": true,
"test2": null,
"test3": "string"
},
"test2": "newValue"
}
用什么命令我可以做到easily?