Hi Robert,
os: windows 7
compiler: visual studio 2008
sample code:
#include <iostream>
#include <string>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
int main()
{
std::string str;
{
std::stringstream sstr;
boost::property_tree::ptree pt;
char a= '\0';
pt.put("a",a);
boost::property_tree::write_json(sstr, pt);
str = sstr.str();
std::cout << str << std::endl;
}
{
std::stringstream sstr(str);
boost::property_tree::ptree pt;
boost::property_tree::read_json(sstr, pt);
char a = '\1';
std::cout << (int)pt.get("a",a) << std::endl;
}
return 0;
}