gojson
gojson copied to clipboard
Prefer interface{} over struct{} for empty object: {}
I think it would be more desirable to translate {"abc": {}}
as
...
Abc interface{} `json:"abc"`
rather than
...
Abc struct{} `json:"abc"`
The empty interface would be more useful than a struct with no fields. Does this sound reasonable?