About 34,300 results
Open links in new tab
  1. How to serialize JSON in C# - .NET | Microsoft Learn

    Learn how to use the System.Text.Json namespace to serialize to JSON in .NET. Includes sample code.

  2. Serialize and deserialize JSON using C# - .NET | Microsoft Learn

    Jan 29, 2025 · Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.

  3. JsonSerializer.Serialize Method (System.Text.Json)

    [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime …

  4. JsonSerializer Class (System.Text.Json) | Microsoft Learn

    Provides functionality to serialize objects or value types to JSON and to deserialize JSON into objects or value types.

  5. How to customize property names and values with System.Text.Json

    Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.

  6. How to use source generation in System.Text.Json - .NET

    This article shows you how to use source-generation-backed System.Text.Json serialization in your apps. For information about the different source-generation modes, see Source …

  7. Serialization - .NET | Microsoft Learn

    Oct 25, 2023 · Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.

  8. How to instantiate JsonSerializerOptions with System.Text.Json

    In .NET 9 and later versions, you can use the JsonSerializerOptions.Web singleton to serialize with the default options that ASP.NET Core uses for web apps. In earlier versions, call the …

  9. Custom serialization and deserialization contracts - .NET

    Jun 16, 2023 · Learn how to write your own contract resolution logic to customize the JSON contract for a type.

  10. Include fields in serialization - .NET | Microsoft Learn

    Learn how to include fields when you serialize to and deserialize from JSON in .NET.