title: jq: error: test1/0 is not defined at <top-level>, line 1
body: <p>I have below JSON file and facing error when trying to add values to array dynamically in the shell.</p>
  
  <p>Below is a tmp.json file,</p>
  
  <pre><code>{
    "environments": {
      "integration": [
        "testing for jenkins job"
      ],
      "prod": [],
      "staging": [],
      "uat": []
    }
  }
  </code></pre>
  
  <p>When I try to append values to an array with a static variable, it works fine.
  Below is the command,
  jq '.environments.integration += ["test1"]' tmp.json</p>
  
  <p>The respective output is,</p>
  
  <pre><code>{
    "environments": {
      "appbuild": [],
      "integration": [
        "testing for jenkins job",
        "test1"
      ],
      "prod": [],
      "staging": [],
      "uat": []
    }
   }
  </code></pre>
  
  <p>Whereas when I try to append values dynamically, it throws an error.</p>
  
  <pre><code>export Environment_Name="integration"
  jq ".environments."\"${Environment_Name}"\" += test1" tmp.json
  </code></pre>
  
  <p>Error I am getting is,</p>
  
  <pre><code>jq: error: test1/0 is not defined at &lt;top-level&gt;, line 1:
  .environments."integration" += test1
  jq: 1 compile error
  </code></pre>
  
  <p>Can anyone please help to fix this.</p>