title: Adding string in <Class str> array in python3?
body: <p>I have a string like this below</p>
  <pre><code>data = '[{&quot;cId&quot;: &quot;y02&quot;, &quot;name&quot;: &quot;Test 02&quot;, &quot;description&quot;: &quot;My Test&quot;}]'
  </code></pre>
  <p>I am sending this data in a http request like</p>
  <pre><code>import requests
  
  headers = {
      'Content-Type': 'application/json',
  }  
  response = requests.post('http://localhost:8000/targets', headers=headers,data=data, auth=('user', 'pass'))
  </code></pre>
  <p>Now what i would like to do is e.g. i have a string in a variable like..</p>
  <pre><code>id=str('random string')
  </code></pre>
  <p>and i would like to add it in data like this..</p>
  <pre><code>data = '[{&quot;cId&quot;: id, &quot;name&quot;: &quot;Test 02&quot;, &quot;description&quot;: &quot;My Test&quot;}]'
  </code></pre>
  <p>But i am not able to add it. I have tried to first convert the entry in json and then adding it into the array. But server sends the exception back. How can i do that?</p>