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
jsonv2.Marshal(in, jsonv1.DefaultOptionsV1()) should be semantically equivalent to jsonv1.Marshal(in), but the former returns an error in the following cases
a struct has only unexported fields
an exported field has a non-ignored json tag
Also, the former clears the value when unmarshaling a JSON null into a non-nullable type.
The text was updated successfully, but these errors were encountered:
That is all expected at the moment. We haven't implemented all of the v1 compatibility layer. It will be a gradual process to get to 100% backwards compatibility.
jsonv2.Marshal(in, jsonv1.DefaultOptionsV1())
should be semantically equivalent tojsonv1.Marshal(in)
, but the former returns an error in the following casesjson
tagAlso, the former clears the value when unmarshaling a JSON null into a non-nullable type.
The text was updated successfully, but these errors were encountered: