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

Do not alter JsonConvert.DefaultSettings #29

Closed

Conversation

0xced
Copy link

@0xced 0xced commented Sep 28, 2020

The JsonConvert.DefaultSettings is a static property of a static class, meaning that it's shared across all consumers of Newtonsoft.Json. That is, potentially used by other assemblies than AzureMapsRestToolkit.

Instead, use a local JsonSerializerSettings instance in AzureMapsToolkit.Common,BaseServices.

The JsonConvert.DefaultSettings is a static property of a static class, meaning that it's shared across all consumers of Newtonsoft.Json. That is, potentially used by other assemblies than AzureMapsRestToolkit.

Instead, use a local JsonSerializerSettings instance in AzureMapsToolkit.Common,BaseServices.
@perfahlen
Copy link
Owner

perfahlen commented Sep 30, 2020

@0xced Thanks, great to solve this issue. Hopefully I get some time soon to work with this library.

@fabich
Copy link

fabich commented Mar 8, 2021

hi @perfahlen
this is a major issue for us.
Would it be possible to merge this PR and create a new release?
This PR should also fix #24

@perfahlen
Copy link
Owner

@fabich, thanks for reminding me. I'll have a look at it this. Unfortunately I am off this week and will not be able to make a release. Hope next week is good enough for you.

I will reach out to community to see if anyone can help admin this repository.

@perfahlen
Copy link
Owner

The library changed to using System.Text.Json so it should not be an issue anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants