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. The System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.
dotnet add package System.Text.Json --version 9.0.17
Install-Package System.Text.Json -Version 9.0.17
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.AsyncInterfaces | [9.0.17, ) |
| System.IO.Pipelines | [9.0.17, ) |
| System.Text.Encodings.Web | [9.0.17, ) |
| System.Buffers | [4.5.1, ) |
| System.Memory | [4.5.5, ) |
| System.Runtime.CompilerServices.Unsafe | [6.0.0, ) |
| System.Threading.Tasks.Extensions | [4.5.4, ) |
| System.ValueTuple | [4.5.0, ) |
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.AsyncInterfaces | [9.0.17, ) |
| System.IO.Pipelines | [9.0.17, ) |
| System.Text.Encodings.Web | [9.0.17, ) |
| System.Buffers | [4.5.1, ) |
| System.Memory | [4.5.5, ) |
| System.Runtime.CompilerServices.Unsafe | [6.0.0, ) |
| System.Threading.Tasks.Extensions | [4.5.4, ) |
| 包名 | 版本要求 |
|---|---|
| System.IO.Pipelines | [9.0.17, ) |
| System.Text.Encodings.Web | [9.0.17, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2026-06-09 16:52:36 |
| 项目主页 | https://dot.net/ |
| 许可证 | https://www.nuget.org/packages/System.Text.Json/9.0.17/license |