EDIT: I am using Utf8Json not System.Text.Json
Is there any possible way to make Utf8Json Deserializer case insensitive? Currently if json key-case doesn't match property-case then values are not populated.
I don't want to use [DataMember(Name ="...")]
class Program
{
static void Main(string[] args)
{
string json = "{\"testprop\":123,\"name\":\"TestObject\"}";
var obj = JsonSerializer.Deserialize<Temp>(json);
Console.ReadKey();
}
}
public class Temp
{
public int TestProp { get; set; }
public string Name { get; set; }
}