Re: Overriding default servicestack serializer
Posted: Tue May 30, 2023 6:24 pm
Your other option would be to annotate your DTO classes for both like the following in an example for ServiceStack
- Code: Select all
[DataContract]
public class Customer
{
[DataMember(Name="first_name")]
public string FirstName { get; set; }
[DataMember(Name="last_name")]
public string LastName { get; set; }
}