Boost C++ Libraries: Ticket #7072: Extra whitespace in write_json https://svn.boost.org/trac10/ticket/7072 <p> #include &lt;boost/regex.hpp&gt; using boost::property_tree::ptree; stringstream sstream; ptree tree; ptree arrayTree; </p> <p> arrayTree.push_back(make_pair("", "arrayItem")); tree.add_child("root", arrayTree); write_json(sstream, tree, false); std::cout &lt;&lt; sstream.str() &lt;&lt; std::endl;<em>{"root":<a class="missing wiki"></a>} should be {"root":<a class="missing wiki">arrayItem</a>} </em></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7072 Trac 1.4.3 Nana Sakisaka <n.sakisaka@…> Thu, 19 Jul 2012 21:37:42 GMT attachment set https://svn.boost.org/trac10/ticket/7072 https://svn.boost.org/trac10/ticket/7072 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">json_parser_write.hpp.patch</span> </li> </ul> Ticket Nana Sakisaka <n.sakisaka@…> Thu, 19 Jul 2012 21:39:15 GMT cc set https://svn.boost.org/trac10/ticket/7072#comment:1 https://svn.boost.org/trac10/ticket/7072#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">n.sakisaka@…</span> added </li> </ul> <p> Here's the patch.<br /> </p> <p> This bug seems to be present since rev.37680. I assume many of us has been experiencing strangeness for outputs for quite a long time. </p> Ticket Nana Sakisaka <n.sakisaka@…> Mon, 10 Dec 2012 18:49:49 GMT <link>https://svn.boost.org/trac10/ticket/7072#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7072#comment:2</guid> <description> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7180" title="#7180: Bugs: Property Tree: json_write() pretty = false option not fully respected ... (closed: fixed)">#7180</a> is a duplicate of this issue. I'd rather suppose to close this issue instead; since <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7180" title="#7180: Bugs: Property Tree: json_write() pretty = false option not fully respected ... (closed: fixed)">#7180</a> has more well-written description. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Tue, 11 Feb 2014 14:51:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7072#comment:3 https://svn.boost.org/trac10/ticket/7072#comment:3 <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">duplicate</span> </li> </ul> Ticket