neuecc / Utf8Json

Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MIT License
2.36k stars 267 forks source link

Case sensitive / insensitive #123

Open imperugo opened 5 years ago

imperugo commented 5 years ago

Is there a way to force the deserialization process to be case insensitive?

unfortunately I've a scenario where some endpoints are returning the same structure with a different case. The deserialization process is centralized and I'd like to prevent to do something like

if(isServiceA)
{
//DeserializeWithUpperCase();
}

if(isServiceC)
{
//DeserializeWithUpperCase();
}

Thanks

imperugo commented 5 years ago

Moreover the problem exists also for the MVC Formatters. Someone could call you using UpperCase or LowerCase

danielmangia commented 4 years ago

Any fix for this?