System.Text.Json 6.0.0-preview.3.21201.4

Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.

Commonly Used Types:
System.Text.Json.JsonSerializer
System.Text.Json.JsonDocument
System.Text.Json.JsonElement
System.Text.Json.Utf8JsonWriter
System.Text.Json.Utf8JsonReader

This is a prerelease version of System.Text.Json.

Requires NuGet 2.12 or higher.

Install-Package System.Text.Json -Version 6.0.0-preview.3.21201.4
dotnet add package System.Text.Json --version 6.0.0-preview.3.21201.4
<PackageReference Include="System.Text.Json" Version="6.0.0-preview.3.21201.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Text.Json --version 6.0.0-preview.3.21201.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: System.Text.Json, 6.0.0-preview.3.21201.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install System.Text.Json as a Cake Addin
#addin nuget:?package=System.Text.Json&version=6.0.0-preview.3.21201.4&prerelease

// Install System.Text.Json as a Cake Tool
#tool nuget:?package=System.Text.Json&version=6.0.0-preview.3.21201.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

https://go.microsoft.com/fwlink/?LinkID=799421

NuGet packages (2.2K)

Showing the top 5 NuGet packages that depend on System.Text.Json:

Package Downloads
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files. Commonly Used Types: Microsoft.Extensions.DependencyModel.DependencyContext
Microsoft.Extensions.Configuration.Json
JSON configuration provider implementation for Microsoft.Extensions.Configuration.
Microsoft.Extensions.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging.
Swashbuckle.AspNetCore.SwaggerGen
Swagger Generator for APIs built on ASP.NET Core
Swashbuckle.AspNetCore.SwaggerUI
Middleware to expose an embedded version of the swagger-ui from an ASP.NET Core application

GitHub repositories (225)

Showing the top 5 popular GitHub repositories that depend on System.Text.Json:

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
jellyfin/jellyfin
The Free Software Media System
cefsharp/CefSharp
.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
restsharp/RestSharp
Simple REST and HTTP API Client for .NET

Version History

Version Downloads Last updated
6.0.0-preview.3.21201.4 18,555 4/8/2021
6.0.0-preview.2.21154.6 23,787 3/11/2021
6.0.0-preview.1.21102.12 33,651 2/12/2021
5.0.2 339,575 4/6/2021
5.0.1 2,376,754 1/12/2021
5.0.0 7,520,897 11/9/2020
5.0.0-rc.2.20475.5 105,114 10/13/2020
5.0.0-rc.1.20451.14 215,202 9/14/2020
5.0.0-preview.8.20407.11 60,779 8/25/2020
5.0.0-preview.7.20364.11 80,898 7/21/2020
5.0.0-preview.6.20305.6 48,940 6/25/2020
5.0.0-preview.5.20278.1 49,618 6/10/2020
5.0.0-preview.4.20251.6 79,900 5/18/2020
5.0.0-preview.3.20214.6 119,379 4/23/2020
5.0.0-preview.2.20160.6 69,894 4/2/2020
5.0.0-preview.1.20120.5 52,855 3/16/2020
4.7.2 29,894,162 5/12/2020
4.7.1 17,583,027 2/18/2020
4.7.0 17,157,571 12/3/2019
4.7.0-preview3.19551.4 161,026 11/13/2019
4.7.0-preview2.19523.17 36,437 11/1/2019
4.7.0-preview1.19504.10 63,284 10/15/2019
4.6.0 38,507,353 9/23/2019
4.6.0-rc1.19456.4 130,104 9/16/2019
4.6.0-preview9.19421.4 109,661 9/4/2019
4.6.0-preview9.19416.11 288 9/4/2019
4.6.0-preview8.19405.3 132,170 8/13/2019
4.6.0-preview7.19362.9 172,980 7/23/2019
4.6.0-preview6.19303.8 153,405 6/12/2019
4.6.0-preview6.19264.9 758 9/4/2019
4.6.0-preview6.19259.10 19,496 5/10/2019