proposal: encoding/json: add an option omitempty
to json.Encoder
#19763
Labels
Milestone
omitempty
to json.Encoder
#19763
Now, encoding/json should omit empty value if json tag contains
omitempty
:But this is too annoying if many fields should omit empty value.
Can we add an option
omitempty
to json.Encoder?, e.g.The text was updated successfully, but these errors were encountered: