Artificial intelligent assistant

Unix shell quoting issues error in jq command I'm trying out this command `jq -n --arg KEY 'no leading zero' --arg VAL '.13452' '.+={$KEY:$VAL}'` on bash terminal to produce output `{"no leading zero":".13452"}`. But I get the following error: jq: error: syntax error, unexpected ':', expecting '}' (Unix shell quoting issues?) at <top-level>, line 1: .+={$KEY:$VAL} jq: error: May need parentheses around object key expression at <top-level>, line 1: .+={$KEY:$VAL} jq: 2 compile errors How to fix the command so I get the output `{"no leading zero":".13452"}` using the args? Thanks.

You can use string interpolation):


jq -n --arg KEY 'no leading zero' --arg VAL '.13452' '{"\($KEY)":$VAL}'


which produces


{
"no leading zero": ".13452"
}

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e97113f31dc7439f2418b3517bbb453c