title: RapidJSON how to receive member object when using FindMember
body: <p>i have JSON which i want to validate it using FindMember and then receive it.
  but the problem is that it do find the "title" string 
  BUT it do not return the rapidjson::Value</p>
  
  <pre><code>[{
          "title" : "one",
          "type" : "gg",
          "center" : {    
          },
  }]
  
  
  
  rapidjson::Document document;
  if(!document.Parse(jsonContent.c_str()).HasParseError())
  {
          if (document.IsArray())
          {
              for (rapidjson::SizeType i = 0; i &lt; document.Size(); i++) 
              {
                  rapidjson::Value&amp; findMemberInJsonNode = FindMemberInJsonNode(&amp;document[i], "title"); 
  
              }
          }
  }
  
  
  
  rapidjson::Value&amp; HelloWorld::FindMemberInJsonNode(rapidjson::Value* jsonValue,std::string str)
  {
      rapidjson::Value::MemberIterator localMemberItr = jsonValue-&gt;FindMember(str.c_str());
      //create null 
      rapidjson::Value &amp;val = rapidjson::Value::GenericValue();
      if (localMemberItr != jsonValue-&gt;MemberEnd())
      {
  //IT IS ENTER HERE SO it DOES FIND THE "title" STRING
          val = localMemberItr-&gt;value;
          if (val.IsNull()) 
          {
              int s = 1;
          }
          else if (val.IsObject())
          {
              int s = 0;
          }
      }
       //IT IS NULL 
      return val;
  }
  </code></pre>