I wanted to have a camel case serialized json while using PostAsync in Flurl
Asked
Active
Viewed 246 times
1 Answers
1
FlurlHttp.Configure(settings =>
{
var jsonSettings = new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
ObjectCreationHandling = ObjectCreationHandling.Replace,
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
settings.JsonSerializer = new NewtonsoftJsonSerializer(jsonSettings);
});

Sumesh Es
- 465
- 3
- 15