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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10