Preserve v1 semantics on encoding/json/v2 calls
ProprietaryAppend jsonv1.DefaultOptionsV1() to encoding/json/v2 marshal and unmarshal calls, adding the jsonv1 "encoding/json" import, to re-enable the v1 defaults that v2 changed. DefaultOptionsV1 is the v1 compatibility bundle from the encoding/json package.
org. openrewrite. golang. migration. PreserveV1Semanticsmod run . --recipe= org. openrewrite. golang. migration. PreserveV1SemanticsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.