title: Add variable value in a JSON string in Python
body: <p>I am puzzled why this is not working. I am trying add my variable value in the JSON and everytime I add it, it is not showing properly in my JSON string.</p>
  
  <pre><code>hostname = "machineA.host.com"
  </code></pre>
  
  <p>I need to add the above hostname information to the below JSON document - </p>
  
  <pre><code>b"{\"Machine Name\":\"\"+hostname+\"\"}", None, True)
  </code></pre>
  
  <p>But whenever I am adding it in the above way, it is not working at all.</p>
  
  <p>Not sure what wrong I am doing here?</p>