jq: error: test1/0 is not defined at , line 1

You have some extra quotes in there and test1 needs to be ["test1"]

jq ".environments.${Environment_Name} += [\"test1\"]" tmp.json

Leave a Comment