diff --git a/space/spacetojson.h b/space/spacetojson.h index 03c9d44..f18ac3f 100644 --- a/space/spacetojson.h +++ b/space/spacetojson.h @@ -163,7 +163,8 @@ bool is_special; PrintToken(out, i2->first); out << L": "; - out << '['; + if( i2->second.size() != 1 ) + out << '['; for(v = 0 ; v < i2->second.size() ; ++v) { @@ -176,7 +177,8 @@ bool is_special; out << L",\n"; } - out << ']'; + if( i2->second.size() != 1 ) + out << ']'; if( index + 1 < space.table.size() ) out << ',';