id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 9721,ptree write_json does not conform to JSON standard,Mark Pfeifer ,Sebastian Redl,"According to the JSON standard documented at http://www.json.org, only string values should have quotes around them. The Boost write_json method puts quotes around all values, not just strings. For example, the following program: #include #include #include #include #include using boost::property_tree::ptree; using boost::property_tree::read_json; using boost::property_tree::write_json; int main() { ptree pt; pt.put (""string"", ""string value""); pt.put (""integer"", 1); pt.put (""float"", 3.14159); std::ostringstream buf; write_json (buf, pt); std::cout << buf.str(); return 0; } produces this output: { ""string"": ""string value"", ""integer"": ""1"", ""float"": ""3.14159"" } According to the JSON standard, the output should be: { ""string"": ""string value"", ""integer"": 1, ""float"": 3.14159 } (no quotes around the numeric values)",Bugs,reopened,To Be Determined,property_tree,Boost 1.67.0,Problem,,,