Boost C++ Libraries: Ticket #3981: json writer generates invalid output for bool values https://svn.boost.org/trac10/ticket/3981 <p> This piece of code should produce the string ( cr and lf removed) { "success" : false }. It wrongly generates { "success" : "false" } </p> <pre class="wiki">std::ostringstream output; using namespace boost::property_tree; ptree pt; pt.put("success", false); json_parser::write_json(output, pt); std::string result = output.str(); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3981 Trac 1.4.3 Sebastian Redl Fri, 05 Mar 2010 23:07:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3981#comment:1 https://svn.boost.org/trac10/ticket/3981#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> The ptree typedef of property tree contains strings. Only strings. Therefore, all properties are written out as strings. </p> Ticket