1
0
mirror of https://github.com/json-iterator/go.git synced 2025-11-26 22:40:13 +02:00

fixed null in number json tag string (#480)

This commit is contained in:
Nikolay Dubina
2020-08-03 10:12:41 +08:00
committed by GitHub
parent 5bce16d299
commit 9461257643
3 changed files with 11 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ func init() {
Field int `json:"field"`
})(nil),
input: `{"field": null}`,
}, unmarshalCase{
ptr: (*struct {
Field int `json:"field,string"`
})(nil),
input: `{"field": null}`,
}, unmarshalCase{
ptr: (*struct {
ID int `json:"id"`