← All recipes
Moderne licensed

Find Newtonsoft.Json usage

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindNewtonsoftJsonArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds 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.FindNewtonsoftJson

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet