You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a TestModel with a Users field ([]UserTestModel). I have a MarshalJSON method that overrides this Users field with different values. If I serialize a slice of TestModel, the Users field is overridden correctly. However, if I serialize just one TestModel, the Users field is not serialized at all, regardless of the JSON tag I use.
Hi,
I have a
TestModel
with a Users field ([]UserTestModel
). I have a MarshalJSON method that overrides thisUsers
field with different values. If I serialize a slice ofTestModel
, the Users field is overridden correctly. However, if I serialize just oneTestModel
, the Users field is not serialized at all, regardless of the JSON tag I use.Result for a slice of TestModel
Result for one TestModel
The text was updated successfully, but these errors were encountered: