We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59c42f commit 48cc4d9Copy full SHA for 48cc4d9
jsoniter_interface_test.go
@@ -389,7 +389,8 @@ func Test_omitempty_nil_nonempty_interface(t *testing.T) {
389
should.Equal(nil, err)
390
should.Equal(string(js), str)
391
392
- err = Unmarshal(js, &obj)
+ obj.Field = MyString("hello")
393
+ err = UnmarshalFromString(`{"field":null}`, &obj)
394
395
should.Equal(nil, obj.Field)
396
}
0 commit comments