title: parse error: Invalid numeric literal at line 1, column 2 (bash)
body: <p>I'm working with json in bash, but I'm getting this parse error:</p>
  <pre><code>parse error: Invalid numeric literal at line 1, column 2
  </code></pre>
  <p>What's wrong with this block of code?</p>
  <pre><code>jsonStr=$(cat &lt;&lt; EOF
  '{&quot;key1&quot;: &quot;value1&quot;, &quot;key2&quot;: &quot;value2&quot;, &quot;key3&quot;: &quot;value3&quot;}'
  EOF
  )
  jsonStr=$(jq 'del(.key3)' &lt;&lt;&lt;&quot;$jsonStr&quot;)
  STRING=&quot;hello&quot;
  jsonStr=$(jq '. + {'&quot;$STRING&quot;': &quot;value4&quot;}' &lt;&lt;&lt;&quot;$jsonStr&quot;)
  echo $jsonStr
  </code></pre>