liveBook · Manning

System.Text.Json

System.Text.Json is a .NET library that provides APIs for serializing, deserializing, reading, and writing JSON data.

How 3 Manning books explain it

ASP.NET Core in Action, 3e

System.Text.Json is the .NET library for reading and writing JSON data.

How it is used
Handles JSON request binding and response serialization in ASP.NET Core minimal APIs.
How deep it goes
Explains automatic binding and selected serializer options, but defers broader model binding and advanced customization.
Examples
Uses Fruit and Product request models, Postman requests, serializer-option configuration, and an NSwag-generated client.
What you can do after
Apply it via ASP.NET Core to bind JSON requests, serialize responses, and configure common naming and syntax options.

Read how ASP.NET Core in Action, 3e explains System.Text.Json →

F# in Action: A Revised Edition of Get Programming with F#

System.Text.Json is the .NET library namespace providing APIs for JSON serialization and deserialization.

How it is used
Serializes and deserializes JSON at application boundaries before mapping values into richer F# domain types.
How deep it goes
Explains API usage, raw-type mapping, validation, anonymous records, and discriminated-union limitations, but not converter implementation.
Examples
Uses guitar inventory JSON, RawGuitar validation, discriminated-union domain values, and anonymous-record reporting output.
What you can do after
Apply it via JsonSerializer to exchange JSON, validate raw records, and produce or consume richer F# domain values.

Read how F# in Action: A Revised Edition of Get Programming with F# explains System.Text.Json →

.NET in Action, Second Edition

System.Text.Json is the .NET library that provides JSON serialization, deserialization, and document-processing APIs.

How it is used
Uses JSON serialization and deserialization in file-processing applications and performance comparisons.
How deep it goes
Explains typed deserialization and practical benchmarking, but does not descend into serializer internals or configuration details.
Examples
Uses a jokes.json file, Joke records, command-line file processing, and comparative deserialization benchmarks.
What you can do after
Apply it via JsonSerializer.Deserialize<T> to convert JSON strings into typed C# objects and arrays.

Read how .NET in Action, Second Edition explains System.Text.Json →

What to know first

Related concepts

Questions about System.Text.Json

What is System.Text.Json?

System.Text.Json is a .NET library that provides APIs for serializing, deserializing, reading, and writing JSON data.

Which Manning books explain System.Text.Json?

ASP.NET Core in Action, 3e, F# in Action: A Revised Edition of Get Programming with F# and .NET in Action, Second Edition.

What should I know before learning System.Text.Json?

Manning books that teach System.Text.Json usually introduce JSON first.

What is the difference between System.Text.Json and union type?

System.Text.Json is a .NET library that provides APIs for serializing, deserializing, reading, and writing JSON data. A union type is a type whose values can represent one of several specified alternative types or variants.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.