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

Configure JsonOptions by default #15460

Merged
merged 7 commits into from
Mar 7, 2024
Merged

Configure JsonOptions by default #15460

merged 7 commits into from
Mar 7, 2024

Conversation

MikeAlhayek
Copy link
Member

Fix #15416

@hyzx86 can you please give this PR a try to make sure the serializer is working?

@sebastienros this pr will make the default JsonOptions mirror the options we use in JsonSerializerOptions. We could also by default use JOptions.Default or JOptions.Base. Thoughts?

@sebastienros
Copy link
Member

Now the question is which one will be resolved/configured first ... since this one depends on the other. Ideally because of this dependency the DI should configure our options before, all the time.

@MikeAlhayek
Copy link
Member Author

MikeAlhayek commented Mar 6, 2024

Yes they get configured during the first request at rasalution time. So first the JsonSerializerOptions will be configured then the JsonOptions.

@MikeAlhayek MikeAlhayek merged commit d99deaa into main Mar 7, 2024
5 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/configure-JsonOptions branch March 7, 2024 19:19
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
@hyzx86
Copy link
Contributor

hyzx86 commented Oct 8, 2024

@hyzx86 can you please give this PR a try to make sure the serializer is working?

Sorry, it looks like there's been a lot of changes lately~~😱
I may not have the free time to fix them anytime soon!!

image

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

Successfully merging this pull request may close these issues.

Update OC 1.8.0-preview-17858 to 1.9.x latest
4 participants