We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 573ec6b commit 0d1d90cCopy full SHA for 0d1d90c
stream_interface.go
@@ -2,6 +2,9 @@ package jsoniter
2
3
func (stream *Stream) WriteInterface(val interface{}) bool {
4
switch x := val.(type) {
5
+ case string:
6
+ stream.WriteString(x)
7
+ return true
8
case bool:
9
stream.WriteBool(x)
10
return true
0 commit comments