JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Serialization of simple collections: List<T>, T[]

    C# SELF
    46 level,0 lecture
    Let's go through how to serialize and deserialize arrays T[] and lists List<T> using System.Text.Json: how collections in C# map to JSON arrays, how to save data to a file and read it back, what to watch out for with null, empty collections and polymorphism. Everything with clear examples using files and serializer settings.
    Open
  • Dictionary serialization

    C# SELF
    46 level,1 lecture
    How to serialize and deserialize dictionaries to JSON using System.Text.Json: from simple cases with string keys to numeric and nested objects. We'll go over why complex objects can't be used as keys, how JsonSerializerOptions options (for example, PropertyNamingPolicy) affect things, and when it's better to replace a dictionary with a list of pairs. With practical examples, JSON snippets, and a breakdown of pitfalls.
    Open
  • Serialization of nested and hierarchical objects

    C# SELF
    46 level,2 lecture
    In this lecture we go through how to serialize and deserialize multi-level structures in C# using System.Text.Json: trees, graphs with potential cycles, nested collections and attributes. We'll discuss JsonSerializer, the ReferenceHandler. IgnoreCycles option, the JsonIgnore attribute, storing references via identifiers and practical patterns for real apps (catalogs, employees, authors/books).
    Open
  • The problem of cyclic references

    C# SELF
    46 level,3 lecture
    In this lecture we look at what cyclic references are and why they break serialization: by default System.Text.Json throws a JsonException when it detects cycles. We'll go over practical approaches: clearing references, the [JsonIgnore] attribute, switching to identifiers instead of nested objects, and enabling reference serialization via ReferenceHandler. Preserve. We'll also compare with Newtonsoft.Json capabilities and give practical recommendations for REST APIs.
    Open
  • Controlling serialization of collections

    C# SELF
    46 level,4 lecture
    How to hide collections and their fields from serialization, rename properties to match an API contract, manage null values and output formats in System.Text.Json. We'll go through attributes like [JsonIgnore], [JsonPropertyName], options JsonSerializerOptions, working with dictionaries, common pitfalls and practical interview questions.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy