Working with JSON in .NET
JSON is one of the most widely used data interchange formats for serializing and transmitting structured data. This course will teach you how to work with JSON in .NET using the native System.Text.Json base class library.
What you'll learn
JSON is one of the most widely used data interchange formats. It is used for serializing and transmitting structured data. In this course, Working with JSON in .NET, you’ll gain the ability to serialize and deserialize JSON in .NET. First, you’ll explore the basics of serialization and deserialization. Next, you’ll discover how to control serialization behavior in mostly any scenario available. Finally, you’ll learn how to use advanced techniques to optimize performance. When you’re finished with this course, you’ll have the skills and knowledge of JSON in .NET needed to work with JSON using the System.Text.Json base class library.
Table of contents
- Main Use Cases for Serializing and Deserializing JSON 1m
- Basic Serialization Scenarios 1m
- Serialization with JsonSerializer 4m
- Async Serialization 2m
- Serialization with Collections and UDTs 2m
- Basic Deserialization Scenarios 2m
- Deserialization with JsonSerializer 3m
- Async Deserialization 3m
- Http Client Extension Methods 6m
- What if You Do Not Have a Class? 3m
- Takeaway 1m
- Checkpoint 01 - Serialization 0m
- Checkpoint 02 - Deserialization 0m
- Controlling Serialization Behavior 1m
- How to Instantiate JSON Serializer Options Instances 5m
- Enabling Case Insensitive Matching 3m
- Customizing Property Names and Values 7m
- Configuring the Order of Serialized Properties 2m
- Ignoring Properties 4m
- Customizing Character Encoding 3m
- Takeaway 1m
- Checkpoint 04 - Customize Property Names and Values 0m
- Checkpoint 04 - Customize Property Names and Values 0m
- Checkpoint 03 - Instantiate Options and Case Insensitive 0m
- Alternatives to JsonSerializer: The DOM and Utf8 Reader and Writer 2m
- Working with the DOM 2m
- Using JsonDocument (Immutable DOM) 8m
- Using JsonNode (Mutable DOM) 7m
- High Performance JSON Writing Using the Utf8JsonWriter 7m
- High Performance JSON Reading Using the Utf8JsonReader 5m
- Takeaway 2m
- Checkpoint 07 - Utf8JsonReader and Utf8JsonWriter 0m
- Checkpoint 06 - JsonDocument and JsonNode 0m
- Handling Errors and Best Practices 1m
- JsonException 4m
- Allow Invalid JSON 3m
- Handle Overflow JSON 4m
- Preserve References and Handle Circular References 5m
- Deserialize to Immutable Types and Non Public Accessors 7m
- Polymorphic Serialization 3m
- Takeaway 1m
- Checkpoint 10 - Deserialize Immutable Types, Non-public Accessors, and Polymorphic Serialization 0m
- Checkpoint 08 - Allow Invalid JSON and Handle Overflow 0m
- Checkpoint 09 - Preserve References and Handle Circular References 0m
- Understanding Advanced System.Text.Json Scenarios 1m
- Writing Custom Converters 5m
- Creating a Basic Pattern Converter 4m
- Creating a Factory Pattern Converter 4m
- Source Generation vs. Reflection and the System.Text.Json Source Generator 6m
- Takeaway 1m
- Checkpoint 11 - Basic and Factory Pattern Converter 0m