title: Parsing youtube data with C++ and Jsoncpp
body: <p>Here is an example feed that I would like to parse:
  <a href="https://gdata.youtube.com/feeds/api/users/aniBOOM/subscriptions?v=2&amp;alt=json" rel="nofollow">https://gdata.youtube.com/feeds/api/users/aniBOOM/subscriptions?v=2&amp;alt=json</a></p>
  
  <p>You can check it with <a href="http://json.parser.online.fr/" rel="nofollow">http://json.parser.online.fr/</a> to see what it contains.</p>
  
  <p>I have a small problem while parsing data feed provided by youtube. First issue was the way the youtube provided the data wrapped inside feed field and because of that I couldn't parse the username straight from original json file so I had to parse first entry field and generate new Json data from that.</p>
  
  <p>Anyway the problem is that for some reason that doesn't include more than the first username and I don't know why because if you check that feed on online parser the entry should contain all the usernames.</p>
  
  <p>`</p>
  
  <pre><code>        data = value["feed"]["entry"];
          Json::StyledWriter writer;
          std::string outputConfig = writer.write( data );
  //This removes [ at the beginning of entry and also last ] so we can treat it as a Json data
          size_t found;
          found=outputConfig.find_first_of("[");
          int sSize = outputConfig.size();            
          outputConfig.erase(0,1);
          outputConfig.erase((sSize-1),sSize);
  
          reader.parse(outputConfig, value2, false);
  
          cout &lt;&lt; value2 &lt;&lt; endl;
  
          Json::Value temp;
          temp = value2["yt$username"]["yt$display"];
          cout &lt;&lt; temp &lt;&lt; endl;
  
          std::string username = writer.write( temp );
          int sSize2 = username.size();           
          username.erase(0,1);
          username.erase((sSize2-3),sSize2);
  </code></pre>
  
  <p>`
  But for some reason [] fix also cuts the data I'm generating, if I print out the data without removing [] I can see all the users but in that case I can't extract temp = value2["yt$username"]["yt$display"];</p>