title: How to get JsonCPP values as strings?
body: <p>I am parsing json data using <a href="https://github.com/open-source-parsers/jsoncpp" rel="nofollow noreferrer">JsonCpp</a>. I don't really need to understand the data, i just need to print out some properties and their values out. It somehow is hard to do. First I need to know what type the value is and then get the value and then convert it to string again! There is a styled writer but I don't want to use it as it appends some CRLF at the end.</p>
  
  <p>I do something like this</p>
  
  <pre><code>CJsonHelper::getUInt(Json::Value &amp;root, std::string key){
      return root.get(key, 0-1).isInt() ? root.get(key, 0-1).asUInt() : 0-1;
  }
  </code></pre>
  
  <p>Could I just write a single function to get all the properties with just that function which doesn't really care about the types etc?</p>