I have below JSON file and would like to update the values of these keys --resType
and --LogLevel
using jq
.
{
"--resType": "FILE",
"--LogLevel": "INFO"
}
To do that, I am using below command.
./jq .--resType=Test config.json>test.json
But, I see an error that says
"jq: error: Test/0 is not defined at , line 1:".
"jq: 2 compile errors"