Open gazerro opened 8 months ago
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.
@dsnet In this case, feel free to close this issue. Thanks.
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.