> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JsonConstants

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

## Definition

**Assembly:** Microsoft.OData.Mcp.Core.dll

**Namespace:** Microsoft.OData.Mcp.Core.Constants

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.