I'm trying to create a json file using a variable somewhat like this:
input:
ss="mango"
jq -n '{"name": {"S": $ID}}' --arg ID 'partridge in a $ss tree'
actual output:
{
"name": {
"S": "partridge in a $ss tree"
}
}
expected output:
{
"name": {
"S": "partridge in a mango tree"
}
}
Is there a way to achieve this using jq
?