You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-11-29 22:47:28 +02:00
make ReadObject return safe string
This commit is contained in:
@@ -82,7 +82,7 @@ func Test_write_object(t *testing.T) {
|
||||
stream.WriteObjectEnd()
|
||||
stream.Flush()
|
||||
should.Nil(stream.Error)
|
||||
should.Equal("{\n hello:1,\n world:2\n}", buf.String())
|
||||
should.Equal("{\n \"hello\":1,\n \"world\":2\n}", buf.String())
|
||||
}
|
||||
|
||||
type TestObj struct {
|
||||
|
||||
Reference in New Issue
Block a user