title: How to convert string to rapid json value
body: <p>I am using rapidjson library to encode and deconde the json. </p>
  
  <p>I have received the string lets say  string Str = "msisdn-123456789"; 
  i want to covert this into a rapidjson value but it says parsing error. and value type is still kNullType </p>
  
  <p>I am using below code snippest. </p>
  
  <pre><code>std::string Str = "msisdn-123456789";
  rapidjson::Document newDoc;
  newDoc.Parse(Str.c_str());
  rapidjson::Value value(rapidjson::kNullType);
  value.CopyFrom(newDoc, newDoc.GetAllocator());
  cout &lt;&lt; "Type of value" &lt;&lt; static_cast&lt;uint32_t&gt;(value.GetType()) &lt;&lt; endl; 
  </code></pre>
  
  <p>The output is kNullType (0) .</p>
  
  <p>How can i convert string to rapidjson value ?</p>