diff --git a/feature_stream.go b/feature_stream.go index 0294dd4..9323848 100644 --- a/feature_stream.go +++ b/feature_stream.go @@ -283,8 +283,7 @@ func (stream *Stream) WriteArrayStart() { // WriteEmptyArray write [] func (stream *Stream) WriteEmptyArray() { - stream.writeByte('[') - stream.writeByte(']') + stream.writeTwoBytes('[', ']') } // WriteArrayEnd write ] with possible indention