When creating a custom JsonConverter and overriding the public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
is it valid to change some settings from that JsonSerializer serializer like:
// ...
serializer.TypeNameHandling = TypeNameHandling.All;
// ...
It seems a valid action because the serializer is of type JsonSerializer
which suggest it's a copy from the original JsonSerializer.