title: Why am I getting a leading sing quote in this echo?
body: <p>I am trying to debug a bash shell script where I am trying to surround a string/variable with single quotes.  I am seeing the following results and am stumped on how to debug this. It obviously has something to do with the content of the variable.  I thought the variable may be an array hence some of the echo statements.  IN_JSON is being constructed via calls to "jq" to construct some JSON.</p>
  
  <pre><code>echo "IN_JSON = ${IN_JSON}"
  echo "IN_JSON = ${IN_JSON[*]}"
  echo "IN_JSON = '${IN_JSON[*]}'"
  echo "IN_JSON = '" ${IN_JSON} "'"
  echo "${#IN_JSON[@]}"
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>IN_JSON = {"name":"RX-CLAIM-FILLED"}
  IN_JSON = {"name":"RX-CLAIM-FILLED"}
  'N_JSON = '{"name":"RX-CLAIM-FILLED"}
   '_JSON = ' {"name":"RX-CLAIM-FILLED"}
  1
  </code></pre>
  
  <p>What's going on here and how do I troubleshoot this? It obviously has something to do with the contents of IN_JSON, but I'm not sure why or what is going on here.</p>