Open Closed

Model JSON properties #1107


User avatar
0
Dicky.tech@gmail.com created

I don't seem to get json property names working.

abp seems to normalise every request response regardless of the json property names. see below sample and how have set my field properties. how can I.get it to work and have my API responses reflect well i.e CityName ? I also want to return 5,000 records per page for this service, the default seems to be 1,000 max.

public class Videogame
{
[JsonProperty("CityName")]
public string City_Name { get; set; }
[JsonProperty("ReleaseDate")]
public DateTime Release_Date { get; set; }
}


7 Answer(s)
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.3.0-preview. Updated on April 11, 2025, 10:10