1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

detect remaining bytes

This commit is contained in:
Tao Wen
2018-02-22 10:37:32 +08:00
parent a3fdd37b9a
commit be70f29b04
3 changed files with 19 additions and 27 deletions

View File

@ -16,6 +16,11 @@ func init() {
Field interface{}
})(nil),
input: `{"Field": "hello"}`,
}, unmarshalCase{
ptr: (*struct {
Field interface{}
})(nil),
input: `{"Field": "hello"} `,
}, unmarshalCase{
ptr: (*struct {
Field int `json:"field"`