-
Notifications
You must be signed in to change notification settings - Fork 522
Open
Labels
VNextNext Major version of SDKNext Major version of SDKfeature-requestNew feature or requestNew feature or request
Description
CosmosClient supports customizing the serializers #CosmosLinqSerializer.
NOTE: CosmosSerializer will be deprecated in future, prefer CosmosLinqSerializer
CosmosClient library includes two implementations for JSON.net and System.Text.Json (https://learn.microsoft.com/en-us/dotnet/api/system.text.json) with JSON.net being the default serializer.
Applications can change the default to System.Text.Json through CosmosClientOptions
CosmosClientOptions options = new CosmosClientOptions()
{
UseSystemTextJsonSerializerWithOptions = new System.Text.Json.JsonSerializerOptions()
{
PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase,
}
};
CosmosClient client = new(
...,
options
);This work item is to change the default to System.Text.json for next major version.
miguelhasse, thoemmi, Robar666, Zenuka, Romfos and 68 more
Metadata
Metadata
Assignees
Labels
VNextNext Major version of SDKNext Major version of SDKfeature-requestNew feature or requestNew feature or request