Getting Started with JSON in C# Using Json.NET 12
Did you know that JSON is arguably now the most widely used data interchange format, therefore learning JSON is a key skill for you to master. In this course, you are going to learn what you need to know about JSON in .NET
What you'll learn
The rising popularity of the web, mainly around JavaScript related technologies, has given JSON a great deal of importance over other data interchange formats, like XML.
In this course, Getting Started with JSON in C# Using Json.NET, you will learn foundational knowledge that will allow you to work with JSON in .NET.
First, you will learn the principles behind serialization fundamentals.
Next, you will discover how to control and customize serialization using settings and attributes. Then, you will explore advanced serialization and deserialization techniques, including LINQ to JSON.
Finally, you will learn about the future of Json.NET with .NET Core and .NET 5.
When you're finished with this course, you will have the skills and knowledge needed to work with JSON in .NET.
Table of contents
- Serialization Fundamentals 2m
- Serializing and Deserializing Using JsonConvert and JsonSerializer 1m
- Demo: Mapping JSON to and from .NET with JsonConvert 4m
- Demo: Preserving Object References 3m
- Demo: Using System.Dynamic with JsonConvert 2m
- Demo: Serializing Different Types of Objects 3m
- Demo: Deserializing Different Types of Objects 4m
- Reading and Writing JSON Using JsonReader & JsonWriter 1m
- Demo: Using the JsonSerializer Class 3m
- Demo: Using the JsonTextReader Class 3m
- Demo: Using the JsonTextWriter Class 2m
- Dates in JSON - Including Demo 4m
- Error Handling - Including Demo 5m
- Takeaway 1m
- Settings and Attributes 4m
- Demo: Setting Behavior for Missing Members with MissingMemberHandling 3m
- Demo: Managing Circular References with ReferenceLoopHandling 3m
- Demo: Handling Null Values with the NullValueHandling Setting 2m
- Demo: Working with Default Values with DefaultValueHandling 4m
- Demo: Controlling Object Creation with ObjectCreationHandling 3m
- Demo: Preserving Type Information with TypeNameHandling 2m
- Demo: Full Assembly Name with TypeNameAssemblyFormatHandling 2m
- Demo: Custom Serialization Binder 4m
- Demo: Reading Ahead with MetadataPropertyHandling 3m
- Demo: Specifying Construction Using Settings with ConstructorHandling 2m
- Controlling Serialization Using Attributes 3m
- Demo: Opt In, Out, and Fields 3m
- Demo: Controlling Serialization Using JsonProperty 3m
- Demo: Specifying the JsonConverter Using an Attribute 3m
- Demo: JsonConstructor Attribute 2m
- Demo: JsonExtensionData Attribute 2m
- Takeaway 1m
- Custom Serialization with Json.NET 2m
- Serializing on Specific Scenarios Using Conditional Serialization 1m
- Demo: Controlling Which Properties Are Serialized with ShouldSerialize 2m
- Demo: Controlling Which Properties Are Serialized with IContractResolver 2m
- Creating a Custom JsonConverter Class 1m
- Demo: Creating a Custom JsonConverter 2m
- Serialization Callbacks 1m
- Demo: Serialization Callbacks 2m
- Logging and Debugging with ITraceWriter 1m
- Demo: Debugging with Serialization Tracing Using ITraceWriter 2m
- Demo: Custom TraceWriter 4m
- Takeaway 1m
- Performance Tips 1m
- Serialize and Deserialize Manually 1m
- Demo: Serialize and Deserialize Manually 6m
- Working with JSON Fragments 1m
- Demo: JSON Fragments 2m
- Write Specific Values Using JSON Populate 0m
- Demo: JSON Populate 3m
- Merging JSON Objects 1m
- Demo: JSON Merge 3m
- Using Attributes for Performance 1m
- Demo: Using Attributes for Performance 3m
- Takeaway 1m
- LINQ to JSON 1m
- Create JSON Using LINQ 1m
- Demo: Create JSON Using LINQ Imperatively 2m
- Demo: Create JSON Using LINQ Declaratively 2m
- Demo: Create JSON Using LINQ with FromObject 2m
- Parsing JSON Using LINQ 1m
- Demo: Parse JSON from String 2m
- Demo: Parse JSON from Stream 2m
- Querying JSON with LINQ 1m
- Demo: Simple LINQ to JSON 2m
- Demo: Read Values from JSON Using LINQ 3m
- Demo: Querying JSON with LINQ Functions 4m
- SelectToken for Dynamic Querying 1m
- Demo: SelectToken 5m
- Annotations 1m
- Demo: Annotations 2m
- Takeaway 1m
Course FAQ
Sending and receiving data can get cryptic when using binary formats or very verbose with XML. JSON, or JavaScript Object Notation, simplifies the process by being a standard that provides human readable data objects in text.
JSON is arguably now the most widely‑used data interchange format, making JSO a key skill for everyone to master.
This course will show you how to convert to and from JSON and .NET objects, how to fine tune the serialization and deserialization process, how to convert to and from XML and JSON, and much more.
Before beginning the course, you should be familiar with programming in C# or VB.NET.