I have the following JSON
{
"jps": {
"onInstall": [{
"cmd [sqldb]": [
"command"
]
}]
}
}
Without [sqldb], I was doing the query as follows:
jq '.jps.onInstall.cmd=["long line", "another line"]' my-app.json
And it worked, but with [sqldb], how can I translate it to jq query format?
I tried
jps.onInstall.cmd\[sqldb\] and jps.onInstall.cmd.sqldb but no luck