[Boost-bugs] [Boost C++ Libraries] #7072: Extra whitespace in write_json

Subject: [Boost-bugs] [Boost C++ Libraries] #7072: Extra whitespace in write_json
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-04 03:37:18


#7072: Extra whitespace in write_json
-----------------------------------+----------------------------------------
 Reporter: talk@… | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.51.0 | Severity: Cosmetic
 Keywords: |
-----------------------------------+----------------------------------------
 #include <boost/regex.hpp>
 using boost::property_tree::ptree;
 stringstream sstream;
 ptree tree;
 ptree arrayTree;


 arrayTree.push_back(make_pair("", "arrayItem"));
 tree.add_child("root", arrayTree);
 write_json(sstream, tree, false);
 std::cout << sstream.str() << std::endl;//{"root":["arrayItem" ]}
 should be {"root":["arrayItem"]}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7072>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC