Skip to content

Replace NewtonSoftJson reference for Version 3.1 and newer #20791

@the1abel

Description

@the1abel

The following portion of this tutorial page should be updated for .NET Core Versions 3.1 and all newer versions.
In the "Configure JSON serialization options" section (#configure-json-serialization-options), the reference to NewtonSoftJson should be removed. This change is due to the addition of System.Text.Json in Version 3.1.

The following changes should be made (per https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-how-to?pivots=dotnet-core-3-1#customize-individual-property-names):

  1. Step HostingEngine.Start returns IDisposable. Usage patterns around IDisposable return values should be documented. #1 should be removed
  2. Step Configuring first article and author block #2 should be removed
  3. Step Add how to build in README.md #3 should remove [JsonProperty("Name")] and instead insert [JsonPropertyName("Name")]
  4. Step I am ready to translate #4 should remove using Newtonsoft.Json; and instead insert using System.Text.Json.Serialization;
  5. Step Migrating from ASP.NET MVC5 to MVC6, Part 1 #5 should remain the same

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions