title: Convert json value to int in c++
body: <p>I'm reading a json value in c++ using </p>
  
  <pre><code>Json::Reader reader
  </code></pre>
  
  <p>and the value is stored in <code>Json::Value root</code></p>
  
  <p>This root contains "age" and "id" and I want to convert root["age"] to int.</p>
  
  <p>I tried to convert it to string using .str() but could not get.</p>
  
  <p>Any suggestion?</p>