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

Isolated JSON settings to library #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marchy
Copy link

@marchy marchy commented Aug 12, 2019

The current library sets JSON serialization settings on the static JsonConvert.DefaultSettings instance, which affects JSON serialization for the entire app (and across different threads if the app is multi-threaded).

This means that using the library will corrupt JSON data sent over by either other libraries or the app itself if any of the settings are different amongst them (which in general they are).

Instead the library should use its own isolated JSON serialization settings so that consuming apps and other libraries can use whatever settings they need without affecting each other.

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.

1 participant