Blueprint for data structure:
public class Movie
{
public string Name { get; set; }
}
Using Newtonsoft.Json, I have the following confi
Here is an alternative. Rather than using two ContractResolvers, you can use NamingStrategy instead of CamelCasePropertyNamesContractResolver.
var settings = new JsonSerializerSettings()
{
ContractResolver = new NullToEmptyStringResolver(){NamingStrategy = new CamelCaseNamingStrategy()}
};
This is the similar @BrianRogers's second approach. I just didn't hard code the setting to NullToEmptyStringResolver class.