Starts in:
2 DAYS
3 HRS
57 MIN
15 SEC
Starts in:
2 D
3 H
57 M
15 S
Open Closed

Configure default JsonSerializerOptions #2538


User avatar
0
hakan.uskaner created
  • ABP Framework version: v5.1.3
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

In my Application Module i would like to configure the JsonIgnoreCondition. I did take a look at https://docs.abp.io/en/abp/latest/JSON I used AbpSystemTextJsonSerializerOptions, what did not work as expected.

I use this code in my Application Module:

I am not sure this is a bug or i am missing something ? I would expect after reading the documentation that the first way should work.

I had some trouble here to paste the code from above. all strings between the square brackets are deleted : this becomes: options.AddMaps(), (a bug here in the editor ?)


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi

    https://github.com/abpframework/abp/issues/10591#issuecomment-970172284

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.jsonoptions?view=aspnetcore-6.0

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06