title: How to insert a map or vector to generate a json string (jsoncpp)
body: <p>Hi I would like to do something easy with the lib jsoncpp like this:</p>
  
  <pre><code>std::map&lt;int,string&gt; mymap;
  mymap[0]="zero";
  mymap[1]= "one";
  
  Json::Value root;
  root["teststring"] = "m_TestString"; //it  works
  root["testMap"] = mymap; //it does not work
  
  Json::StyledWriter writer;
  string output = writer.write( root );
  </code></pre>
  
  <p>The error is : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::map&lt;_Kty,_Ty>'</p>
  
  <p>Do you have an idea to solve this,? I understand that json::value can not accept a map but to create a json file it should be, right?
  thank you very much</p>