Disallow json.(Un)Marshaler
/encoding.Text(Un)Marshaler
on user-defined types
#1247
Labels
json.(Un)Marshaler
/encoding.Text(Un)Marshaler
on user-defined types
#1247
We added support for delegating to
json.(Un)Marshaler
/encoding.Text(Un)Marshaler
only so that stdlib types such astime.Time
would be correctly transcoded. Something I didn't think of at the time though, is that this would allow user types to override encoding, which is something that we do not want.The text was updated successfully, but these errors were encountered: