I have an object which has field in lower case with an underscore
public class Project
{
public int project_id { get; set; }
public long account_id { get; set; }
public long user_id { get; set; }
public string name { get; set; }
public string description { get; set; }
public DateTime created_at { get; set; }
public DateTime updated_at { get; set; }
}
I need to serialize in camel case when GET, POST, etc API hit the API. How can I do it?
json is like:
{
"project_id": 10,
"account_id": 10,
"user_id": 10,
"name": "string",
"description": "string",
"created_at": "Date",
"updated_at": "Date"
}
I want in this format:
{
"projectId": 10,
"accountId": 10,
"userId": 10,
"name": "string",
"description": "string",
"createdAt": "Date",
"updatedAt": "Date"
}