Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify CosmosDB client to use System.Text.Json #110

Open
SebastianKuesters opened this issue Sep 20, 2023 · 0 comments
Open

Modify CosmosDB client to use System.Text.Json #110

SebastianKuesters opened this issue Sep 20, 2023 · 0 comments
Labels
cleanup Technical debt that should be fixed in upcoming cleanup sessions enhancement New feature or request

Comments

@SebastianKuesters
Copy link
Member

Right now we are using Cosmos DB SDK version 3.x, which is using Newtonsoft.Json internally. This is a problem for us, as we want to use System.Text.Json everywhere.

The switch to System.Text.Json is on roadmap for version 4.x of the SDK since years: Azure/azure-cosmos-dotnet-v3#2533

Let's try out this workaround here to switch to System.Text.Json
https://ankitvijay.net/2021/06/20/custom-json-serializer-settings-with-cosmos-db-sdk/

@SebastianKuesters SebastianKuesters added cleanup Technical debt that should be fixed in upcoming cleanup sessions enhancement New feature or request labels Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Technical debt that should be fixed in upcoming cleanup sessions enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant