You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2022. It is now read-only.
public class Customer
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int Age { get; set; }
public string Address { get; set; }
public Customer()
{
FirstName = "First Name Test";
LastName = "Last Name Test";
Age = 30;
Address = "Neverland";
}
}
From swagger - json string received as camel case (firstName instead of FirstName in Customer class): "{\"firstName\":\"myName\",\"lastName\":\"myLastName\",\"age\":0,\"address\":\"myAddress\"}"
Because of this difference, my Customer object in not set with the values and contains the default values from the constructor. Other serialization libraries can handle this scenario. Is there a solution in utf8json to handle camel-case string where my class contains pascal-case memers?
The text was updated successfully, but these errors were encountered:
I have a class of Customer:
From swagger - json string received as camel case (firstName instead of FirstName in Customer class):
"{\"firstName\":\"myName\",\"lastName\":\"myLastName\",\"age\":0,\"address\":\"myAddress\"}"
Because of this difference, my Customer object in not set with the values and contains the default values from the constructor. Other serialization libraries can handle this scenario. Is there a solution in utf8json to handle camel-case string where my class contains pascal-case memers?
The text was updated successfully, but these errors were encountered: