I am using the Boost Property Tree for a Project and came across a problem. I'm using it like this:
using Namespace boost::property_tree;
ptree proot;
int myInt = 5;
proot.put("Number", myInt);
write_json("myjson.json", proot);
If I use it like this, the data type that is safed is a string, not an int. An example of what i mean:
{ "Number": "5" } //what i get
{ "Number": 5 } //what i want
Is there a way to change that?