Preserve v1 semantics on encoding/json/v2 calls

Proprietary

Append 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.PreserveV1Semantics
mod run . --recipe=org.openrewrite.golang.migration.PreserveV1Semantics

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.