System.Text.Json
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.
Install
dotnet add package System.Text.Json --version 10.0.10
Install-Package System.Text.Json -Version 10.0.10
<PackageReference Include="System.Text.Json" Version="10.0.10" />
Frameworks
Dependencies
Adoption guide
New .NET applications that target modern runtimes and can use its supported serializer model.
Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.
The published metadata declares 19 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.