title: Jq returning null value for nested key in my shell script
body: <p>I am trying to output the value for nested json key but for some reason I get null value.</p>
  <pre><code>    SP=$(curl --proxy ...my apicall)
      declare -A prop_map=(
                  [&quot;ID&quot;] = &quot;tagInfo.id&quot;
      )
  
      for key in ${!prop_map[@]}; do
      pn=${prop_map[&quot;$key&quot;]}
      val=$(jq -r --arg e &quot;$pn&quot; '.[$e]' &lt;&lt;&lt; 
      &quot;$SP&quot;)
      echo $val
  </code></pre>
  <p>Curl response looks like this
  {
  tag info:{ id: &quot;12&quot;  , name:...}}</p>
  <p>Can anyone please guide ..been stuck on this for so long</p>