Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shotakitazawa/traverse-and-merge-json


https://github.com/shotakitazawa/traverse-and-merge-json

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# traverse-and-merge-json

```
$ tree .
.
└── hoge
   ├── fuga
   │   └── metadata.json
   └── metadata.json
```

```
$ cat hoge/fuga/metadata.json
{
"a1": "ok",
"a2": "ok",
"b1": [
"a",
"b"
],
"c1": {
"c11": "ok",
"c12": "ok"
}
}
```

```
$ cat hoge/metadata.json
{
"a1": "invalid",
"b1": [
"a",
"ok"
],
"c1": {
"c11": "invalid",
"c13": "ok"
}
}
```

```
$ traverse-and-merge-json hoge/fuga metadata.json
{"a1":"ok","a2":"ok","b1":["a","b","ok"],"c1":{"c11":"ok","c12":"ok","c13":"ok"}}
```