Port JSON responses containing projected anonymous string arrays

Proprietary

Opt-in default-encoder/declaration-order port of fresh default JavaScriptSerializer responses with string properties and arrays from in-file Enumerable.Select expression-bodied anonymous string projections followed by ToArray. Require bound local provenance, explicit ASCII property names and all-string element properties; retain projection/materialization and capture response values once in order. Use the existing portable response helper and BCL reflection for the compiler-generated sealed element getters. Preserve null arrays/elements/strings, IEnumerable traversal and the default size/error policy. Leave unknown element provenance, DTOs, dynamic/nested/other properties, custom serializers, unsupported imports/owners, lambdas/queries and snapshots unchanged. Custom encoders/ampersand settings, localized errors, reflection property order, anonymous allocation identity and trimming behavior are not emulated. Separate opt-in; Core 3.0 or later.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseHttpUtilityForProjectedStringArrayJsonResponses
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseHttpUtilityForProjectedStringArrayJsonResponses

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