title: Parse JSON array value as std::string using Boost
body: <p>I'm trying to parse a std::string JSON string with this code:</p>
  
  <pre><code>        std::string ss = "{ \"id\" : \"abc123\", \"number\" : \"0123456789\", \"somelist\" : [{ \"timestamp\" : \"May 1, 2015\" , \"data\" : { \"description\" : \"some description\", \"value\" : \"100.000000\" } }] }";
  
          ptree pt2;
          std::istringstream is(ss);
          read_json(is, pt2);
          std::string _id = pt2.get&lt;std::string&gt;("id");
          std::string _number = pt2.get&lt;std::string&gt;("number");
          std::string _list = pt2.get&lt;std::string&gt;("somelist"); 
  
  
          for (auto&amp; e : pt2.get_child("somelist")) {
              std::cout &lt;&lt; "timestamp: " &lt;&lt; e.second.get&lt;std::string&gt;("timestamp") &lt;&lt; "\n";
              for (auto&amp; e1 : pt2.get_child("data")){ // not working
                  std::cout &lt;&lt; "description: " &lt;&lt; e1.second.get&lt;std::string&gt;("description") &lt;&lt; "\n";
                  std::cout &lt;&lt; "value: " &lt;&lt; e1.second.get&lt;std::string&gt;("amount") &lt;&lt; "\n";
              }
          }
  </code></pre>
  
  <p>Although my target is not to print the child items (nor convert the JSON string into C++ array). The code above does not work. </p>
  
  <p>I want to know how to get the value of <code>data</code> not as array or something, just as string like this <code>[{ "timestamp" : "May 1, 2015" , "data" : { "description" : "some description", "value" : "100.000000" } }]</code></p>
  
  <p>Just need the JSON Array as-is as std::string</p>