title: Json string parsing with shell script
body: <p>I have issue in inoking curl ,but I am not understanding where I misssed curly brace</p>
  <pre><code>CLUSTER_NAME=testclu
  Node_name=testnode
  json=\''{&quot;definition&quot;:{&quot;id&quot;:5474},&quot;sourceBranch&quot;: &quot;refs/heads/feature/node-memory-clean-up&quot;,&quot;parameters&quot;: {&quot;system.debug&quot;:&quot;false&quot;,&quot;Cluster_name&quot;:&quot;'&quot;$CLUSTER_NAME&quot;'&quot;,&quot;Node_name&quot;:&quot;'&quot;$Node_name&quot;'&quot;}}'\'
  
  printf '%s\n' &quot;$json&quot;
  
  
  curl -X POST \
  -u 'xxyv.x.xxx https://dev.azure.com/sample/RD%20Tech%20AIML%20DevOps/_apis/build/builds?api-version=5.0' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data $json
  </code></pre>
  <p>I am getting this error   always</p>
  <pre><code>                                 Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: &quot;refs
  curl: (3) unmatched close brace/bracket in URL position 72:
  {&quot;system.debug&quot;:&quot;false&quot;,&quot;Cluster_name&quot;:&quot;testclu&quot;,&quot;Node_name&quot;:&quot;testnode&quot;}}'
  </code></pre>