1

I wanted to have a camel case serialized json while using PostAsync in Flurl

Sumesh Es
  • 465
  • 3
  • 15

1 Answers1

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