Based on https://docs.particular.net/nservicebus/serialization/json, I would like to pass some settings to the JsonSerializer, such as IgnoreNullValues for example. But so far I didn't find out any example of how to pass settings to the serializer.
var serialization = endpointConfiguration.UseSerialization<JsonSerializer>();
//I would like to use something like below,
//but I don't find any examples of how to pass settings to the JsonSerializer
serialization.Settings.IgnoreNUllValues = true;
What I cannot find out is the correct syntax for passing the settings or a list of available settings for the default JsonSerializer.
Thanks.