Starts in:
2 DAYS
3 HRS
11 MIN
46 SEC
Starts in:
2 D
3 H
11 M
46 S
Open Closed

JsonProperty names are not applied when consuming AppServices #1598


User avatar
0
cbogner85 created
  • ABP Framework version: v4.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hello,

when I consume an AppService via REST, JsonProperty names are not applied. It always returns C# name in camelCase. I found the following issues, stating that it should have been fixed in 4.3: GitHub abp Support

However, the phenomenon still exists in 4.3.3:

Also tried to create a new test project with abp suite in 4.3.3, same result:

What am I missing?

Thanks an best regards Claus


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try use JsonPropertyNameAttribute

  • User Avatar
    0
    cbogner85 created

    Thank you liangshiwei,

    it works!

    Best regards Claus

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