--- json_parser_write.hpp.old 2012-07-20 06:07:24.533283368 +0900 +++ json_parser_write.hpp 2012-07-20 06:20:10.609256326 +0900 @@ -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