You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	Used writeTwoBytes in Stream.WriteEmptyArray
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user