Serialization and Deserialization in C# using System.Text.Json | Complete Course

preview_player
Показать описание
Serialization and Deserialization in C# is used to convert the C# object to json string and Json string to c# object. Serialization is the process of converting the c# object to JSON string and Deserialization is the process of converting JSON string to c# object.
There are differect libraries available for Serialization and Deserialization in dotnet core but in this video we will use the built in namespace System.Text.Json for Serialization and Deserialization.
In this video, we will conver all concepts about working with JSON in C# (DotNet Core). Apart from basic Serialization and Deserialization there are several customisations that we need to perform while working with real world applications. In this video you will learn all those concepts.

TimeStamp:

00:00 What is Serialization and Deserialization?
01:40 Convert Object to JSON string in C# (Serialization)
06:08 How to format JSON strng in C# console application
08:21 How to rename property using JsonPropertyName attribute?
10:15 How to ignore C# property in Serialization using JsonIgnore attribute
11:53 How to include Fields in Serialization using JsonInclude attribute
13:10 Serialize the C# Objects to camelCase (Json Naming Policy in Serialization)
15:43 Custom JSON naming policy in C# Serialization
17:47 Display ENUM value as string in C# Serialization using JsonStringEnumConverter
20:33 How to maintain the order of properties in C# Serialization using JsonPropertyOrder attribute
23:01 How to Serialize a List (Array) of objects to JSON in C#
24:40 Deserialization in C# (Convert JSON string to C# Object)
29:06 JsonPropertyName attribute in C# Deserialization
30:37 JsonIgnoere in C# Deserialization
31:02 Validations in C# Deserialization using JsonRequired attribute or required keyword
32:15 Deserializing the Invalid JSON string to C# objects
35:31 JsonExtensionData attribute to handle the overflow json
38:10 Using JsonSerializerOptions in Asp.Net Core at centralized place

Join this channel to get access to perks:

working with json in c#,
c# json tutorial,
c# json parser,
c# json deserialize,
c# json serialization,
c# json deserialize to object,
c# json serialization and deserialization,
c# json file,
c# json to object,
serialization in c#,
serialization in c# in hindi,
serialization in c# tamil,
serialization in c# json,
serializable in c#,
serialization and deserialization in c#,
serialization and deserialization in c# json ,
serialization and deserialization in dotnet,
serialization and deserialization in dotnet core,
serialization and deserialization in dotnet core 6,
serialization in dotnet,
serialization in dotnet core,
convert json string to object in c# ,
convert object to json string,
convert json to c# object,
convert json string to object in c# ,
ReadCommentHandling,
NumberHandling,
AllowTrailingCommas
Рекомендации по теме
Комментарии
Автор

Thanks for this tutorial. Tons of detail, and examples to go with it! Exactly the information I was looking for!

ugib
Автор

Best Tutorial thanks!
PS.
Remove click sound 😁

Totti
Автор

Thank you so much, great in detail video,
can you please make a video about sending data with all differents way like SendAsync, PostAsync, SendAsJsonAsync, ... in same details please?
and thank you agai for your great effort

hozmannew
Автор

This operation can perform on asp. Net mvc core?

abhishekbhawankar