You've already forked json-iterator
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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user