title: Preparing C++ Json Request
body: <p>I am trying to prepare json request using c++. Like this:</p>
  
  <pre><code>string key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  
  std::string data = "{\n"
  "    \"foo\": key\n"
  "}";
  </code></pre>
  
  <p>When I print this, it's shows like :</p>
  
  <pre><code>"foo": key
  </code></pre>
  
  <p>But I need like this :</p>
  
  <pre><code>"foo": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  </code></pre>
  
  <p>So, please someone help me. How to do this? Thanks in advance.</p>