Find JsonSerializer.Deserialize nullable JsonDocument change

Proprietary

Finds JsonSerializer.Deserialize() calls. In .NET 9, nullable JsonDocument properties now deserialize to a JsonDocument with RootElement.ValueKind == JsonValueKind.Null instead of being null.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindJsonDocumentNullable
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindJsonDocumentNullable

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