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

Поделиться
HTML-код
  • Опубликовано: 24 июл 2024
  • 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:
    / @nitish.kaushik
    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# ,
    system.text.json,
    system.text.json c#,
    system.text.json vs newtonsoft,
    system.text.json deserialize,
    using system.text.json,
    ReadCommentHandling,
    NumberHandling,
    AllowTrailingCommas
  • НаукаНаука

Комментарии • 11

  • @dhruvayushman2785
    @dhruvayushman2785 27 дней назад

    Thanks for this tutorial Nitish sir.

  • @ugib8377
    @ugib8377 Месяц назад

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

  • @10Totti
    @10Totti 3 месяца назад

    Best Tutorial thanks!
    PS.
    Remove click sound 😁

  • @hozmannew896
    @hozmannew896 2 месяца назад +1

    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

    • @nitish.kaushik
      @nitish.kaushik  2 месяца назад +2

      Thanks for your feedback. I have already created that video.
      Here is the link. ruclips.net/video/5Hhj2GBMCzs/видео.html

    • @hozmannew896
      @hozmannew896 2 месяца назад

      @@nitish.kaushik another great video, thank you so much

  • @abhishekbhawankar2971
    @abhishekbhawankar2971 18 дней назад

    This operation can perform on asp. Net mvc core?