id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7180,Property Tree: json_write() pretty = false option not fully respected for arrays,Paul Chandler ,Sebastian Redl,"When outputting an array with ""pretty"" set to false, indentation is output blindly before the closing brace. This has the potential to waste a lot of space in certain usage scenarios... like my own :) Example: {{{ [""1"",""2"" ] }}} Expected: {{{ [""1"",""2""] }}} Patch: {{{ diff -dur boost.old/property_tree/detail/json_parser_write.hpp boost.new/property_tree/detail/json_parser_write.hpp --- boost.old/property_tree/detail/json_parser_write.hpp 2012-07-26 19:42:10.000000000 -0700 +++ boost.new/property_tree/detail/json_parser_write.hpp 2012-07-26 19:43:34.000000000 -0700 @@ -93,7 +93,8 @@ stream << Ch(','); if (pretty) stream << Ch('\n'); } - stream << Str(4 * indent, Ch(' ')) << Ch(']'); + if (pretty) stream << Str(4 * indent, Ch(' ')); + stream << Ch(']'); } else }}}",Bugs,closed,To Be Determined,property_tree,Boost Development Trunk,Problem,fixed,property_tree json_write pretty indent,n.sakisaka@…