Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shotakitazawa/traverse-and-merge-json
https://github.com/shotakitazawa/traverse-and-merge-json
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shotakitazawa/traverse-and-merge-json
- Owner: ShotaKitazawa
- License: mit
- Created: 2020-11-06T11:12:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T15:58:36.000Z (about 4 years ago)
- Last Synced: 2024-04-17T22:07:09.521Z (7 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"}}
```