Find JsonSerializer.Deserialize nullable JsonDocument change
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindJsonDocumentNullableArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds JsonSerializer.Deserialize() calls. In .NET 9, nullable JsonDocument properties now deserialize to a JsonDocument with RootElement.ValueKind == JsonValueKind.Null instead of being null.
Single recipeserializationsearchdotnetnet9Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindJsonDocumentNullableIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet