Find Newtonsoft.Json usage
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindNewtonsoftJsonArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds usages of Newtonsoft.Json types (JObject, JArray, JToken, JsonConvert) that should be migrated to System.Text.Json or explicitly preserved via Microsoft.AspNetCore.Mvc.NewtonsoftJson in ASP.NET Core 3.0+.
Single recipeserializationnet3.0searchdotnetProprietary
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.Net3_0.FindNewtonsoftJsonIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet