Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Constants Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Constants.JsonConstants

Summary

Provides centralized, reusable JsonSerializerOptions instances to improve memory efficiency and performance.

Remarks

Creating new JsonSerializerOptions instances is expensive as each instance creates internal caches and converters. By reusing these static instances, we significantly reduce memory allocations and improve performance. These options are thread-safe and can be used concurrently across the application.