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
encoding/json: handle encoding.ScalarMarshaler and encoding.ScalarUnmarshaler
Per discussion on https://go.dev/issue/56235, Marshal checks for ScalarMarshaler strictly
after TextMarshaler, and Unmarshal delegates to TextUnmarshaler or
ScalarUnmarshaler according to whether the corresponding JSON value is a
string, Boolean, or number. Neither function handles a complex128 type
argument to the interfaces.
The text was updated successfully, but these errors were encountered:
ScalarMarshaler
andScalarUnmarshaler
interfaces were added to the encoding package in golang/go:Description from https://go-review.googlesource.com/c/go/+/553176
The text was updated successfully, but these errors were encountered: