-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
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. |
Yes they get configured during the first request at rasalution time. So first the |
src/OrchardCore/OrchardCore.Abstractions/Json/Extensions/JsonSerializerOptionsExtensions.cs
Outdated
Show resolved
Hide resolved
Sorry, it looks like there's been a lot of changes lately~~😱 |
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 useJOptions.Default
orJOptions.Base
. Thoughts?