title: boost : Just iterate over elements of a ptree
body: <p>This should be simple (I'm just learning boost so I'm missing something)</p>
  
  <p>I have read in some simple JSON using json_read and now have a ptree.  All the examples on the web show using ptree.get("entry_name") to obtain an entry.  All I want to do is something like:</p>
  
  <pre><code> ptree pt;
   read_json(ss,pt);
  
   BOOST_FOREACH(ptree::value_type &amp;v, pt)
   {
     std::cout &lt;&lt; v.{entry_name} &lt;&lt; v.{value}
   }
  </code></pre>
  
  <p>i.e. loop through the ptree and write out each name (i.e. what you put into pt.get()) and it's corresponding value.</p>
  
  <p>Sorry if this is simple</p>
  
  <p>Ross</p>