I'm trying to figure out how to use jq to load the content of one json file into the hash of another file. E.g.:
this file:
{
"annotations": {...},
"rows": [ {...}, {...}]
}
should be inserted into this file at the hash dashboard:
{
"dashboard": { },
"overwrite": true,
"message": "new commit"
}
so the resulting file should be
{
"dashboard": {
"annotations": {...},
"rows": [ {...}, {...}]
},
"overwrite": true,
"message": "new commit"
}
I was thinking to do it with an pipe | or |= operator but I can't figure out how to use one content and assign it to a select filter of the other file.